How to get [ "AD_MANAGER","TWEET_COMPOSER" ] via twitter api


#1

am getting onley the below response for all my twitter accounts

[data_type] => user_access
[data] => stdClass Object
(
[user_id] => 2213952876
[permissions] => Array
(
[0] => ACCOUNT_ADMIN
)

    )

but i need like below please help me in this
{
“data_type”: “user_access”,
“data”: { “user_id”: 20,
“permissions”: [ “AD_MANAGER”,“TWEET_COMPOSER” ]
},