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

Update docs to reflect correct API key for bitly #77

Open
snowbound opened this issue Oct 13, 2017 · 6 comments
Open

Update docs to reflect correct API key for bitly #77

snowbound opened this issue Oct 13, 2017 · 6 comments

Comments

@snowbound
Copy link

I have used the older style API key and user account in various shortening apps over the years and it worked. I copied the API_Key that I have always used from my bit.ly account and pasted it into the extension and saved the settings.

I then spent 20 minutes wondering why I kept seeing
capture

I gave up using the API_Key and had to to go through the OAuth token generation process and embedding the token into the https://api-ssl.bitly.com/v3/shorten?format=txt&access_token=&longUrl=%URL%

As mentioned in the documentation http://copy-shorturl.readthedocs.io/en/latest/serviceurl.html

@fwenzel
Copy link
Owner

fwenzel commented Oct 14, 2017

Good call that the old documentation might be out of date. I didn't update it when I turned the add-on into a webextension.

I'll also make sure to bubble errors into the console so at least you'll know what happened.

Side note: I am using bitly with an API key right now with no problems.

@fwenzel
Copy link
Owner

fwenzel commented Oct 14, 2017

Oh also, OAuth Token (the thing I am linking to in the copy shorturl prefs) is obviously what you need

@fwenzel
Copy link
Owner

fwenzel commented Oct 14, 2017

To confirm, did you generate a "generic access token" with bitly?

@snowbound
Copy link
Author

Yes I originally started to create the Registered OAuth Application via the Bit.ly menu but realized that it seemed overly complicated for what I needed. That was when I discovered via bit.ly that a "generic access token" was more suitable. Perhaps the online documentation could indicated that?

@fwenzel
Copy link
Owner

fwenzel commented Oct 14, 2017

Yeah has little to do with more suitable -- the implementation I wrote is for what bitly calls "generic access token".

@fwenzel
Copy link
Owner

fwenzel commented Oct 14, 2017

I'll keep this Issue open to adjust the docs!

@fwenzel fwenzel changed the title Bit.ly option using soon to be deprecated API key issues Update docs to reflect correct API key for bitly Oct 14, 2017
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

2 participants