Hi,
I’m expecting that /1/accounts will return 2 json object, but instead it is returning only 1. If I individually query /1/accounts/:account_id for each of the 2 id I know it suppose to have, then I can see the data.
Weird enough, if I query /1/accounts I only get 1 json object… can someone help?
twurl -H ads-api.twitter.com ‘/1/accounts/18ce54ahyak’
{
"request": {
"params": {
"account_id": "18ce54ahyak"
}
},
"data_type": "account",
"data": {
"name": "Allan Donald - Monster.com",
"business_name": null,
"timezone": "America\/New_York",
"timezone_switch_at": "2016-02-24T05:00:00Z",
"id": "18ce54ahyak",
"created_at": "2016-02-24T09:16:44Z",
"salt": "46df4eec0daa6f6e56d68179d3731f05",
"updated_at": "2017-01-05T09:49:41Z",
"business_id": null,
"approval_status": "ACCEPTED",
"deleted": false
}
}
twurl -H ads-api.twitter.com ‘/1/accounts/18ce54ffcgs’
{
"request": {
"params": {
"account_id": "18ce54ffcgs"
}
},
"data_type": "account",
"data": {
"name": "Monster Social Job Ads (3) for Monster QA Handle (@Monstersjqa3)",
"business_name": null,
"timezone": "America\/New_York",
"timezone_switch_at": "2013-05-22T04:00:00Z",
"id": "18ce54ffcgs",
"created_at": "2016-11-28T22:00:49Z",
"salt": "2875f64bc1640f9420e5adab1a9dbef1",
"updated_at": "2016-11-28T22:01:25Z",
"business_id": null,
"approval_status": "ACCEPTED",
"deleted": false
}
}
twurl -H ads-api.twitter.com ‘/1/accounts?with_deleted=false’
{
"request": {
"params": {
"with_deleted": false
}
},
"data": [{
"name": "Allan Donald - Monster.com",
"business_name": null,
"timezone": "America\/New_York",
"timezone_switch_at": "2016-02-24T05:00:00Z",
"id": "18ce54ahyak",
"created_at": "2016-02-24T09:16:44Z",
"salt": "46df4eec0daa6f6e56d68179d3731f05",
"updated_at": "2017-01-05T09:49:41Z",
"business_id": null,
"approval_status": "ACCEPTED",
"deleted": false
}],
"data_type": "account",
"total_count": 1,
"next_cursor": null
}