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

Is there an API to get Feeds? #8

Open
samma835 opened this issue Aug 22, 2018 · 5 comments
Open

Is there an API to get Feeds? #8

samma835 opened this issue Aug 22, 2018 · 5 comments

Comments

@samma835
Copy link

How can I get all content of the groups I joined? Like the "Homepage" in app.

I tried the Timeline API. But all of the data is my shares of the groups I joined. No others.

REF:
https://staging.primas.io/v3/accounts/e5d29dbb33fec9f268c515d8b0dd657b0da7faa3a5e8214c2c8a5d2a17d35122/timeline

@koalacxr
Copy link
Member

@samma835
Copy link
Author

@koalacxr

Thanks for your response.

This API can get all the content I share, but can't get all the content of groups I follow.

Is there an API to get content created by others, and all of them are from the groups I follow. Like the function of "Homepage" in Primas Dapp.

@koalacxr
Copy link
Member

@BullDa
You need to convert from the obtained share to content.

The share contains the src_id field, and then call the api interface "1. Get content metadata" to get the real content in “https://github.com/primasio/primas-api-doc/blob/master/content.md”.

@samma835
Copy link
Author

samma835 commented Sep 7, 2018

@koalacxr
I don't think so.

Timeline means all content others shares. But this API retunes all content I shares.
(Timeline API 是否应该返回我关注的圈子里的其他人分享的内容? 为什么这个 API 返回的都是我分享的内容?)

@koalacxr
Copy link
Member

koalacxr commented Sep 7, 2018

@BullDa
This bug has been fixed.

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