Использование HTTParty Я попытался запросить доступ токен, как показано ниже:Instagram API - Невозможно запросить маркер доступа
result = HTTParty.post("https://api.instagram.com/oauth/access_token",
{
:body => [ { "client_id" => xxxxxxxxxx, "client_secret" => xxxxxxxxxxxxx,
"grant_type" => "authorization_code",
"redirect_url" => 'http://localhost:4000/access_token', "code" => xxxxxxxx } ].to_json,
:headers => { 'Content-Type' => 'application/json', 'Accept' => 'application/json'}
})
Но ответ говорит, что # 400, "ERROR_TYPE" => "OAuthException" , "error_message" => "Вы должны предоставить client_id"}, @ response = #, @headers = {"content-language" => ["en"], "expires" => ["Sat, 01 Jan 2000 00 : 00: 00 GMT "], ........
Не могу понять, почему .. Помощь!