producthunt / producthunt-api

Product Hunt API
311 stars 28 forks source link

Issue with my product list #130

Closed Ravi-kavya01 closed 7 years ago

Ravi-kavya01 commented 7 years ago

Hyy, I am calling api to get my post Api link below: https://api.producthunt.com/v1/users/963905/products It does not return any data while i have one post and it is working perfect when we use your user given in doc.

Thanks Ravi Shukla

RStankov commented 7 years ago

Hi,

/products returns posts the given user is marked as maker. For user with id 963905 - https://www.producthunt.com/@ravi_shukla there no products.

Ravi-kavya01 commented 7 years ago

As i can see i have one submitted product. Below is the link of my account: https://www.producthunt.com/@ravi_shukla/submitted

Thanks Ravi Shukla

RStankov commented 7 years ago

submitted is product posted by you, while products from api is product where you are added as maker.

Here is a table explaining it better:

PH URL API Endpoint
https://www.producthunt.com/@ravi_shukla/made /v1/users/963905/products
https://www.producthunt.com/@ravi_shukla/submitted /v1/users/963905/posts
Ravi-kavya01 commented 7 years ago

I have used new endpoint '/v1/users/963905/posts' as you suggest but still same problem, not getting any record while i have posted one.

On Tue, Aug 8, 2017 at 4:25 PM, Radoslav Stankov notifications@github.com wrote:

submitted is product posted by you, while products from api is product where you are added as maker.

Here is a table explaining it better: PH URL API Endpoint https://www.producthunt.com/@ravi_shukla/made /v1/users/963905/products https://www.producthunt.com/@ravi_shukla/submitted /v1/users/963905/posts

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/producthunt/producthunt-api/issues/130#issuecomment-320921673, or mute the thread https://github.com/notifications/unsubscribe-auth/AdRVvS5FG2KAuFaLQqE6-e_US3OX64ZMks5sWD6KgaJpZM4OsWDz .

RStankov commented 7 years ago

I checked. The problem is /v1/users/963905/posts actually returns only featured posts and the post you had was not featured.

Ravi-kavya01 commented 7 years ago

Then how can i list my post. Is there any api for this.

On Wed, Aug 9, 2017 at 1:13 PM, Radoslav Stankov notifications@github.com wrote:

I checked. The problem is /v1/users/963905/posts actually returns only featured posts and the post you had was not featured.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/producthunt/producthunt-api/issues/130#issuecomment-321179520, or mute the thread https://github.com/notifications/unsubscribe-auth/AdRVvUORlrU7zc46FzFnok44NockBw_Zks5sWWMsgaJpZM4OsWDz .

RStankov commented 7 years ago

Not at this moment. :(