Forum Academy Marketplace Showcase Pricing Features

How to store pocket article data using Pocket API (via API Connector pluggin)

Hi guys,

I am hoping someone can help, been bashing me head against this problem for a few hours now.

I am successfully authenticating against Pocket’s API using the Bubble API connector pluggin. I am also successfully retrieving data about my articles using Pocket’s Retrieve API call..

I am ultimately trying to display the retrieved info (stuff like title, image and URL) in a Repeating Group and since I haven’t figured out how to set the Repeating Group’s content type to that of an external API using the API connector, I am taking the longer route of trying to store the data first. As an example, I created a PocketArticle type to store the article titles.

The problem I am having is that the Retrieve API returned values are empty and I am not quite sure why. Can anyone help?

Thanks in advance!

Here is my app

Incidentally, trying the same flow in Postman returns the following JSON:

{
“status”: 1,
“complete”: 1,
“list”: {
“688703784”: {
“item_id”: “688703784”,
“resolved_id”: “688703784”,
“given_url”: “https://doubleyourfreelancing.com/quit-your-job/”,
“given_title”: “How To Prepare Yourself To Quit Your Job And Go Freelance - Double Your Fre”,
“favorite”: “0”,
“status”: “0”,
“time_added”: “1490197834”,
“time_updated”: “1490197843”,
“time_read”: “0”,
“time_favorited”: “0”,
“sort_id”: 2,
“resolved_title”: “How To Prepare Yourself To Quit Your Job And Go Freelance”,
“resolved_url”: “https://doubleyourfreelancing.com/quit-your-job/”,
“excerpt”: “Malcolm writes, “It gets harder to contemplate going full time when your day job has a very high salary, great benefits, room for advancement and is in a explosive growth industry. (That also usually comes with long hours, lots of stress, and lots of travel, which can be a strain on your family.”,
“is_article”: “1”,
“is_index”: “0”,
“has_video”: “0”,
“has_image”: “1”,
“word_count”: “1185”
},
“1121780331”: {
“item_id”: “1121780331”,
“resolved_id”: “1121780331”,
“given_url”: “http://www.makeuseof.com/tag/4-reasons-shouldnt-learn-code-codeacademy/”,
“given_title”: “4 Reasons Why You Shouldn’t Learn to Code from Codecademy”,
“favorite”: “0”,
“status”: “0”,
“time_added”: “1490284327”,
“time_updated”: “1490284327”,
“time_read”: “0”,
“time_favorited”: “0”,
“sort_id”: 1,
“resolved_title”: “4 Reasons Why You Shouldn’t Learn to Code from Codecademy”,
“resolved_url”: “http://www.makeuseof.com/tag/4-reasons-shouldnt-learn-code-codeacademy/”,
“excerpt”: “From the title, you probably think I’ve got some major beef with Codecademy. I don’t. In many ways, I admire them.”,
“is_article”: “1”,
“is_index”: “0”,
“has_video”: “0”,
“has_image”: “1”,
“word_count”: “1420”
},
“1665316714”: {
“item_id”: “1665316714”,
“resolved_id”: “1665316714”,
“given_url”: “https://productcoalition.com/what-we-need-in-a-vp-of-product-management-5f039abf6afb#.f5nbtmu3o”,
“given_title”: “”,
“favorite”: “0”,
“status”: “0”,
“time_added”: “1490287417”,
“time_updated”: “1490287418”,
“time_read”: “0”,
“time_favorited”: “0”,
“sort_id”: 0,
“resolved_title”: “What We Need in a VP of Product Management”,
“resolved_url”: “https://productcoalition.com/what-we-need-in-a-vp-of-product-management-5f039abf6afb”,
“excerpt”: “A lot of product management writing is about the individual product manager, with emphasis on tools, lean start-up models and envisioning new products. My recent focus has been on the challenges of leading larger product management teams.”,
“is_article”: “1”,
“is_index”: “0”,
“has_video”: “0”,
“has_image”: “1”,
“word_count”: “1178”
}
},
“error”: null,
“search_meta”: {
“search_type”: “normal”
},
“since”: 1490371388
}

When I try I get an authorisation error. I note that your redirect url in your authorisation parameters is your index url. Should it not be the display url?

Hey @raulspil, could you switch your app to public so that we can take a look?

@romanmg the app is public. here is a link again:

@louisadekoya good spot however the redirect API Connector call is not actually used (so should probably just be deleted). The redirect_url is actually passed in as part of the workflow assigned to the “Request pocket code” button on the Index page. The workflow has a call to an external URL which has the correct redirect_url pointing to my display Bubble page.

Hope that is clear.

I keep getting kicked out when I try to go to your link. Settings > General > Is it on Public?

@romanmg, I was able to access it by removing all instances of amp& in the link. Try this:

https://bubble.io/page?type=page&name=index&id=justanotherapp&tab=tabs-1

The app is Public.

Oh great, I didn’t even notice those. Thanks.