Handling responses
Making Requests
Example: GET/accounts/me
$.ajax({
url: "https://api.dev.medable.com/example/accounts/me",
type: "GET",
contentType: "application/json; charset=UTF-8",
dataType : "json",
headers: {
"Medable-Client-Key": "GsAqlhnIMzrDeD8V2MBQWq",
"Medable-Csrf-Token": "MvFkpcS0BCM9qpf4K0pFMyiE57e3VtI5Cb38NfQn6eWiPPp6CqZCOOrAljDZYWnU"
}
});[[MDAPIClient sharedClient]
currentAccount:^(MDAccount* account, MDFault* fault)
{
if (fault)
{
// Fault handling
}
else
{
}
}];Handling Responses
Example: Single Object Response
GET/account
Example: Multiple Object Response
GET /c_examples?limit=1
GET /accounts/5516ee2634d8d93428169c0e/profile/missing
Result Example
List Example
Last updated
Was this helpful?