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

Authentication using API key only isn't working #43

Closed
joshnabbott opened this issue Oct 16, 2015 · 4 comments
Closed

Authentication using API key only isn't working #43

joshnabbott opened this issue Oct 16, 2015 · 4 comments

Comments

@joshnabbott
Copy link

I'm following this very basic example using the API key I retrieved from my account settings.

require 'createsend'
cs = CreateSend::CreateSend.new :api_key => 'your api key'
clients = cs.clients

And it always results in this error:
CreateSend::Unauthorized: The CreateSend API responded with the following error - 50: Must supply a valid HTTP Basic Authorization header

Does the API no longer support key based authentication?

@tolgap
Copy link

tolgap commented Dec 9, 2015

@joshnabbott Could you post how you resolved this?

@lenart
Copy link

lenart commented Feb 7, 2017

Check that you're using API secret (not API key) to authenticate.

For example:

list = CreateSend::List.new({ api_key: "your-api-secret-here" }, "put-your-list-id-here")
list.details # => { "ListID" => "12345", ... }

@Faisal-nfl
Copy link

@lenart I know that its not the place but can you point that where to find api secret and client secret.
all I can see is client Id & api key.

@mjwills
Copy link

mjwills commented Dec 4, 2018

@Faisal-nfl https://help.createsend.com/admin/api-keys may be of assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants