Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleResponse
{
    "error":0,
    "result":{"id":"1234567890abcd"}
}



-------------------------------------------------------------------
Method:/token/create

Code Block
languagejs
titleParameters
{
    "attrs":
    {
        "user.id":"user id",
        "product.id":"product id"
    }
}

...

Code Block
languagejs
titleResponse
{
    "error": 0,
    "result":
    {
        "total": 20,
        "rows":
        [
             {
                 "firstName":"John",
                 "lastName":"Smith",
                 "email":"js@acme.com",
                 "telephone":"447974321234",
             },
             {
                 "firstname":"David",
                 "lastname":"Smith",
                 "email":"ds@acme.com",
                 "telephone":"447974234975",
             },
             ...
        ]
    }
}


Method:/token/search

...

Code Block
languagejs
titleResponse
{
    "error": 0,
    "result":
    {
        "total": 20,
        "rows":
        [
              {"serial":"77004155"},
              {"serial":"77004245"},
              {"serial":"77004266"},
              {"serial":"77004321"},
              ...
        ]
    }
}