Skip to content

Fix #67: client.refresh without connecting#70

Open
serv wants to merge 1 commit intoNapster:masterfrom
serv:feature-client-refresh
Open

Fix #67: client.refresh without connecting#70
serv wants to merge 1 commit intoNapster:masterfrom
serv:feature-client-refresh

Conversation

@serv
Copy link
Contributor

@serv serv commented Aug 31, 2016

#67

This PR supports this use case below. This use case is needed because you need to be able to refresh access token without an access token.

client_hash = {
  api_key: 'API_KEY',
  api_secret: 'API_SECRET',
  refresh_token: 'REFRESH_TOKEN'
}

client = Napster::Client.new(client_hash)
client.refresh # => returns new access_token by refreshing it

ruby client readme

test for self.prepare_refresh_token

updated refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments