-
-
Notifications
You must be signed in to change notification settings - Fork 445
add Pocket and Instapaper share buttons and icons #201
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
Conversation
src/InstapaperShareButton.js
Outdated
|
|
||
| return 'http://www.instapaper.com/hello2' + objectToGetParams({ | ||
| url, | ||
| text: title, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the name of the parameter be title?
I did not find the official documentation, but https://feedbin.com/help/sharing-read-it-later-services/ and https://gist.github.com/revelt/a70923df337f7923e067 suggest that url and title would be the parameters to use here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found the documentation and title is correct, plus it allows a description property. I'll add these.
src/PocketShareButton.js
Outdated
|
|
||
| return 'https://getpocket.com/save' + objectToGetParams({ | ||
| url, | ||
| text: title, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same question over here: should the query parameter be named title? The links mentioned in the previous comment provide examples for Pocket. There it seems that title is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! After reviewing the documentation for their API it looks like the title parameter is ignored if Pocket can get a title parameter from the shared page, so it looked like it was working for me when I tested. I'll make this change, and also I notice that Pocket supports a tags property and also a tweet_id so I'll update to add those.
|
okay @aautio I've updated the code to reflect |
|
It will be awesome when this PR will be merged 🎉 |
…jwrubel-master # Conflicts: # README.md # docs/index.html # docs/main.e2b9c3407372f202448e.bundle.js

Hi! I needed these two services for a 'read later' function so I added them. I've checked the demo page and they look ok to me. I used PR #181 as a reference here - Let me know if I missed anything.
Cheers, and thanks for making this awesome library available!