FANDOM



Getting Started

Object Classes

MEMRISE class

Constructor

The MEMRISE object is created by a call to http://www.memrise.com/lib/x/js/memrise.js

Methods

Methods Return Value Description
Leaderboard() none
MemStream() none
courses.unenroll(d) none
courses.unenroll_press() Boolean
modal.error(a,c)
modal.info(c,d,e)
modal.spinner_close()
modal.spinner_open(c,d)
modal.yes_no(c,d,e,f)
models.ThingUser()
profile.update_json_setting(b,c,d)
tracking.bind_event(b)
tracking.disable() none

Properties

Properties Type Description
DEBUG Boolean
TESTING Boolean
STATIC_URL string
GIT_SHA string
FACEBOOK_APP_ID string
FACEBOOK_CHANNEL string
DOMAIN string
renderer MEMRISE.render
audioPlayer.current_url string
audioPlayer.playing Boolean
garden MEMRISE.garden
keyboard MEMRISE.keyboard
mem_editor MEMRISE.mem_editor
mems MEMRISE.mems
modal.$spinner

MEMRISE.render class

TBD


MEMRISE.garden.box_maping.multiple_choice class

Constructor ...

Methods

Methods

Methods Return Value Description
select_choice()
select_choices()
...

Properties

Properties Type Description

Session class

Constructor

The Session object is created by a call to Memrise's Session service.  It seems to be loaded into the MEMRISE.garden object when the page loads.

Methods

This object has no methods

Properties

Properties Type Description
boxes array 1 box object for each thing being tested
mems object a JavaScript object where each key is a thing_id and each value is another JavaScript Object; in the nested objects, each key is a mem_id and each value is a mem object
mongo_session_id string unknown
pools object a JavaScript object where each key is a pool_id and each value is a pool object
session.course.creator user Details of the user whom created the course being tested
session.course.description string from the course page
session.course.id integer
session.course.is_list Boolean
session.course.name string
session.course.num_learners integer
session.course.num_levels integer
session.course.num_things integer
session.course.photo string URL of the uploaded image
session.course.photo_large string URL of a 400px x 400px image
session.course.photo_small string URL of a 100px x 100px image
session.course.price_in_cents integer
session.course.slug string
session.course.source language Details of the language that a user should already know
session.course.target language Details of the language that the user is learning
session.course.url string
session.course_id integer
session.level.column_a integer
session.level.column_b integer
session.level.course_id integer
session.level.id integer

Services

Write the second section of your page here.


Ajax/Session

URL Attributes for Ajax/Session
Attribute Required? Type Description
session_slug required string

"review" should return a session for 10 things;

"water_category" should return session for up to 25 items within a category, but only those that need to be watered;

"water_course" should return session for up to 25 items within a course, but only those that need to be watered;

"water_level" should return session for up to 25 items within a level, but only those that need to be watered;

"preview" should return a session with all things in the level

course_id optional integer This is required unless session_slug=water_category
level_index optional integer This is only required if session_slug=water_level
target_slug optional string This is required if session_slug=water_category; otherwise, it is unused

Example query: http://www.memrise.com/ajax/session/?course_id=79389&level_index=1&session_slug=review

Levels: Get Editing Level

This service will return a block of prepared HTML that would be inserted into the table interface on the editing page.  Users only have access to levels in courses in which they are either a creator or contributor.

Example Query: http://www.memrise.com/ajax/level/get_editing_html/?level_id=123456


Mems: Get_Many_For_Thing

URL Attributes for /api/mem/get_many_for_thing
Attribute Required? Type Description
thing_id required integer A number corresponding to the thing (word) to which the mems are tied
column_a optional integer A number corresponding with the part of the thing that is being asked for (e.g. definition, translation, pronunciation).  The numbers may have different meanings from course to course.
column_b optional integer A number corresponding with the part of the thing that is being used as a prompt (e.g. definition, translation, pronunciation, audio).  The numbers may have different meanings from course to course.
_ optional integer Unknown.  Perhaps a user identifier?

Example query: http://www.memrise.com/api/mem/get_many_for_thing/?thing_id=17844023

The Get_Many_For_Thing should send a JSON response that includes a "mems" array with 7 elements.

{"mems": [{...}, {...}, {...}, {...}, {...}, {...}, {...}]}

Each of these elements shall have the following structure:

Response Format for Get_Many_For_Thing
JSON Attribute Type Description
absolute_url string
author JSON object
can_edit Boolean
column_a integer
column_b integer
cre UNIX timestamp
flagged Boolean
id integer
image_original string
image_output_url string
pool JSON object
rating integer
search_engine string
search_source string
text string
text_size integer
text_x_position integer
text_y_position integer
thing JSON object
thing_id integer
thumbs_upped Boolean


Garden: Register

These POST requests are made during gardening sessions to record the user's progress.

Attribute Required? Type Description
thing_id required integer A number corresponding to the thing (word) to which the mems are tied
column_a required integer A number corresponding with the part of the thing that is being asked for (e.g. definition, translation, pronunciation).  The numbers may have different meanings from course to course.
column_b required integer A number corresponding with the part of the thing that is being used as a prompt (e.g. definition, translation, pronunciation, audio).  The numbers may have different meanings from course to course.
box_template required string unknown ("multiple_choice", see MEMRISE.garden.box)
update_scheduling required Boolean Decides whether the test scheduling for this thing should be recalculated
score required float A number between 0 and 1 representing how close a typed-in answer was to being correct
time_spent required integer The time spent on this session (in milliseconds)
points required integer The points earned for a given answer, between 0 & 200
given_answer optional? string The answer input by the user
time_paused optional? integer The time on this session spent with the pause screen displayed (in milliseconds)
mongo_session_id optional? string An alphanumeric identifier with 24 characters
num_things_seen optional? integer The number of things (words) tested so far in this session
course_id optional integer An ID number for the course that is currently being tested (not present if an entire category is being tested)
level_id optional
category_id optional
chosen_mem_index optional
Response from Garden: Register
JSON Attribute Type Description
points integer the number of points earned for a single answer
thinguser.ignored Boolean True if the user has decided to ignore this word in this level
thinguser.next_date UNIX timestamp The date and time when the thing will next need to be watered
thinguser.thing_id integer A number corresponding to the thing that was just tested
thinguser.growth_level integer not sure yet: it was set to 9 in the test I ran
thinguser.current_streak integer How many times in a row the user has idenified this thing correctly
thinguser.column_a integer A number corresponding with the part of the thing that is being asked for (e.g. definition, translation, pronunciation).  The numbers may have different meanings from course to course.
thinguser.column_b integer A number corresponding with the part of the thing that is being used as a prompt (e.g. definition, translation, pronunciation, audio).  The numbers may have different meanings from course to course.
thinguser.created_date UNIX timestamp The time when the user first learned the thing?
thinguser.interval float How long, in days, until the thing will need to be watered again (this is equal to the differenece between next_date and now)
thinguser.last_date UNIX timestamp The date and time when the user last watered this thing
thinguser.mem_id integer A number corresponding to the mem that this user has selected for this thing
thinguser.total_correct integer How many times, since first seing the thing, the user has correctly idenified it
thinguser.total_incorrect integer How many times, since first seing the thing, the user has misidenified it
thinguser.user_id integer An ID number for the user that is currently logged in

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.