We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Basic authorization for Access Tokens is enabled by default for GrapeOAuth2 gem. So you can do requests as follows:
token = '7be8a583fa42b6812fad7c619cff93d216c308099d580c2810d4a1bbc8fe8edd' RestClient.get 'http://localhost:3000/api/v1/me.json', { 'Authorization' => "Basic #{Base64.encode64("#{token}:")}" } # => "{ "id":25, "email":"[email protected]", "first_name":"John", "last_name":"Doe"}"