Helpful error messages
POST {{url}}/auth/token
Publishers have developed clever ways to provide feedback to users who are learning their APIs. Some use helpful error messages returned from the server to guide users along their journey. Others rely on Qodex log statements or tests to interpret the client request or standard server response and prompt users to update their API call appropriately. If you don't have a Yodlee sandbox set up, you may not be able to send this example request from the Yodlee collection. However, take notice of the scripts under the Tests tab validating required variables and outputting feedback to the user in the non-traditional form of error messages displayed through tests.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Api-Version
|
string | ||
loginName
|
string | From your dashboard (Sandbox only) |
RESPONSES
status OK
{
"dataProvider": [
{
"date_stamp": "2020-01-22",
"iso3166_1": "China",
"cnt_confirmed": 547
},
{
"date_stamp": "2020-01-22",
"iso3166_1": "United States of America",
"cnt_confirmed": 1
},
{
"date_stamp": "2020-01-23",
"iso3166_1": "China",
"cnt_confirmed": 639
},
{
"date_stamp": "2020-01-23",
"iso3166_1": "United States of America",
"cnt_confirmed": 1
},
{
"date_stamp": "2020-01-24",
"iso3166_1": "China",
"cnt_confirmed": 916
},
{
"date_stamp": "2020-01-24",
"iso3166_1": "United States of America",
"cnt_confirmed": 2
},
{
"date_stamp": "2020-01-25",
"iso3166_1": "China",
"cnt_confirmed": 1399
},
{
"date_stamp": "2020-01-25",
"iso3166_1": "United States of America",
"cnt_confirmed": 2
},
{
"date_stamp": "2020-01-26",
"iso3166_1": "Canada",
"cnt_confirmed": 1
},
{
"date_stamp": "2020-01-26",
"iso3166_1": "China",
"cnt_confirmed": 2062
},
{
"date_stamp": "2020-01-26",
"iso3166_1": "United States of America",
"cnt_confirmed": 5
},
{
"date_stamp": "2020-01-27",
"iso3166_1": "Canada",
"cnt_confirmed": 1
},
{
"date_stamp": "2020-01-27",
"iso3166_1": "China",
"cnt_confirmed": 2863
},
{
"date_stamp": "2020-01-27",
"iso3166_1": "United States of America",
"cnt_confirmed": 5
},
{
"date_stamp": "2020-01-28",
"iso3166_1": "Canada",
"cnt_confirmed": 2
},
{
Curl curl -X POST 'url/auth/token' -H 'Api-Version: 1.1' -H 'loginName: userName' --data-urlencode '%7B%22name%22%3D%3E%22clientId%22%2C+%22value%22%3D%3E%22clientId%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22secret%22%2C+%22value%22%3D%3E%22secret%22%2C+%22datatype%22%3D%3E%22string%22%7D' ENDPOINTS |