I am trying to connect to my client, but I am getting error.
allErrors:
[ { code: ‘UNAUTHORIZED_CLIENT_APPLICATION’,
message: ‘The client application making this request does not have access to this API’ } ] }
Details to access api is:
"client": "Microsoft",
"app_name": "Microsoft_Twitter_ADs",
"app_id": "7234057",
"account_id": "8ut80",
"owner_id": "2848395784"
results.twitterDetails.get(‘accounts/:account_id/campaigns’, { account_id: results.clientDetails.account_id }, function (error, resp, body) {
if (error) return console.error(error);
})
Time Zone For Client is PST. I am passing start and end time in this format.
var startTime = ‘2017-03-05T07:00:00Z’;
var endTime = ‘2017-03-11T07:00:00Z’;