Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #67: client.refresh without connecting #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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