I'm Getting UNAUTHORIZED_ACCESS in updating the name and industry type in sandbox, I think the error might be in the signature

ads
sandbox

#1

var client = new RestClient(“https://ads-api-sandbox.twitter.com/4/accounts/gq1jft?account_name=‘First%20Account’&industry_type=AGENCY”);
var request = new RestRequest(Method.PUT);
request.AddHeader(“Postman-Token”, “4ae166e0-670a-4188-82da-25fac1e95472”);
request.AddHeader(“Cache-Control”, “no-cache”);
request.AddHeader(“Connecton”, “false”);
request.AddHeader(“Content-Type”, “application/x-www-form-urlencoded”);
request.AddHeader(“Authorization”, ““OAuth oauth_nonce=\“NjM2NzQyNjkxMDQ2NzIyNjIy\”, oauth_signature_method=\“HMAC-SHA1\”, oauth_timestamp=\“1538643506\”, oauth_consumer_key=\“EyvpXwyBSdrZTZNmF8LqpVYMd\”, oauth_token=\“4076840054-6EsSSD7JRuOo8p9p4UV9lDpCdyd8t0ahB2NC6jc\”, oauth_signature=\“YhYPQgPe%2Fjgc5LuW1cJbrS12apg%3D\”, oauth_version=\“1.0\”””);
request.AddHeader(“Accept-Encoding”, “/”);
request.AddHeader(“Host”, “ads-api-sandbox.twitter.com”);
IRestResponse response = client.Execute(request);

this is from postman.


#2

@JLouiesito: Please see Guidance for UNAUTHORIZED_ACCESS issues. You can also see this post for additional context.


#3