memonic

Sets Resource

The Sets resource represents the list of Sets a user has created.

Resource URL: https://api.memonic.com/v2/users/{user_id}/sets?apikey={yourkey}

MethodPurpose
GET Returns a list of the user's Sets.

GET

The GET method on the Sets resource returns a list of the user's Sets.

Response

Status codes

The following response status codes can be returned.

CodeReason
200 All good. Response body is enclosed.
401 Not logged in or invalid Authorization header.
404 The user was not found.

In case of a successful 200 response the following output is returned:

XML

<sets>
  <set order="0">
    <id>__all__</id>
    <user>user_id</user>
    <modified>1970-01-01T00:00:00</modified>
    <title>All</title>
  </set>
  <set order="1">
    <id>__inbox__</id>
    <user>user_id</user>
    <modified>1970-01-01T00:00:00</modified>
    <title>Inbox</title>
  </set>
  <set order="2">
    <id>a_set_id</id>
    <user>user_id</user>
    <modified>2010-07-26T18:47:32</modified>
    <title>A Set</title>
  </set>
</sets>

JSON

{
  "sets": [
    {
      "id": "__all__", 
      "user": "user_id", 
      "modified": "1970-01-01T00:00:00", 
      "title": "All"
    }, 
    {
      "id": "__inbox__", 
      "user": "user_id", 
      "modified": "1970-01-01T00:00:00", 
      "title": "Inbox"
    }, 
    {
      "id": "a_set_id", 
      "user": "user_id", 
      "modified": "2010-07-26T18:47:32", 
      "title": "A Set"
    }
  ]
}