Medium / medium-sdk-nodejs

A NodeJS SDK for Medium's OAuth2 API https://medium.com
Apache License 2.0
345 stars 33 forks source link

All User Publications Not Returned #30

Closed Lwdthe1 closed 6 years ago

Lwdthe1 commented 6 years ago

I am hitting https://api.medium.com/v1/users/{userId}/publications through the NodeJS SDK for this api and only getting back 17 of the 35 publications that I am associated with. Most importantly, the api isn't returning all the publications I own or edit. I have pasted the response below.

It also returns publications I no longer have any relationship with: "Inspire the World" is one such publication. An example of one of my publications that are missing is "The Vegan"

[
   {
      "id":"15f753907972",
      "name":"3 min read",
      "description":"The official Medium blog",
      "url":"https://medium.com/blog",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*nx4UstHiCe6kAI_25QmvMA.png"
   },
   {
      "id":"2817475205d3",
      "name":"Medium Engineering",
      "description":"Stories from the team who are building Medium.",
      "url":"https://medium.com/medium-eng",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*rPOoYCvFQDKxxjP-ByrH7g.png"
   },
   {
      "id":"2bb9dfffef3a",
      "name":"Visual Snow",
      "description":"Our hallucinations are no longer the same. Tell your story and together we’ll approach a cure.",
      "url":"https://medium.com/visual-snow",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*5YPmjtEB_ueDR-5Us9zWyA.jpeg"
   },
   {
      "id":"2e5ce7f173a5",
      "name":"Google Developers",
      "description":"Engineering and technology articles for developers, written and curated by Googlers. The views expressed are those of the authors and don’t necessarily reflect those of Google.",
      "url":"https://medium.com/google-developers",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*YPxqkb8PlWYBtLLJiPWNbg.png"
   },
   {
      "id":"301f4089ab9d",
      "name":"On Fashion",
      "description":"Everything Fashion",
      "url":"https://medium.com/on-fashion",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*p0ctV6KKQZJPEH1_tRQgEg.png"
   },
   {
      "id":"323c513f6364",
      "name":"Be Yourself",
      "description":"Don't instruct, share.",
      "url":"https://medium.com/life-tips",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*fQU81iavBgiWfXZNvBtnDQ.png"
   },
   {
      "id":"336d898217ee",
      "name":"freeCodeCamp",
      "description":"Our community publishes stories worth reading on development, design, and data science.",
      "url":"https://medium.com/free-code-camp",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*MotlWcSa2n6FrOx3ul89kw.png"
   },
   {
      "id":"341417f8ba77",
      "name":"Inspire the World",
      "description":"Inspire the world one story at a time.",
      "url":"https://medium.com/inspire-the-world",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*EM_amaHSeG_3Pxh3Tb6xOQ.jpeg"
   },
   {
      "id":"37bffeb025cd",
      "name":"Jean Hsu",
      "description":"Jean is an engineering leadership coach who is passionate about sharing her people-centric leadership style with teams from small startups to larger companies",
      "url":"https://medium.com/jean-hsu",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*WmLJMJRwer_d0q_T2NkbtA.png"
   },
   {
      "id":"39d9b4950757",
      "name":"Marketing And Growth Hacking",
      "description":"Everything Marketing and Growth Hacking.",
      "url":"https://medium.com/marketing-102",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*PlzjoMmo-8hyhpHaPNmmXA.png"
   },
   {
      "id":"3a8144eabfe3",
      "name":"Hacker Noon",
      "description":"how hackers start their afternoons.",
      "url":"https://medium.com/hacker-daily",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*76XiKOa05Yya6_CdYX8pVg.jpeg"
   },
   {
      "id":"3fbda34dbc32",
      "name":"Growth Hackers",
      "description":"The official Medium account of http://GrowthHackers.com. Premiere destination to collaborate and get inspired to help grow your business.",
      "url":"https://medium.com/growthhackers",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*Cgtx6FUvotilpFzusYkB2w.png"
   },
   {
      "id":"431752823a68",
      "name":"Y Combinator",
      "description":"Make something people want. See all our posts @ blog.ycombinator.com",
      "url":"https://medium.com/ycombinator",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*92PO1Xhdb7d-OWMfdNvPug.png"
   },
   {
      "id":"46d7368244ce",
      "name":"Statement",
      "description":"Building a better way to express yourself fashionably and influence your world.",
      "url":"https://medium.com/statement",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*p0ctV6KKQZJPEH1_tRQgEg.png"
   },
   {
      "id":"5d3d6e983893",
      "name":"Couple’s Reviews",
      "description":"Reviews by a unique couple",
      "url":"https://medium.com/couples-reviews",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*PuMIHBx8diaIrQAjFhFiqA.png"
   },
   {
      "id":"5e53b8da3c5f",
      "name":"A Couple Reviews",
      "description":"A Couple Fun Reviews of the World by a Unique Couple. Fun reviews of anything a couple might use from the newest tech gadgets to vegan food.",
      "url":"https://medium.com/a-couple-reviews",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*mO2aamcKAB2jDsnX0Of4vQ.png"
   },
   {
      "id":"5f96c2d877c4",
      "name":"How We Get To Next",
      "description":"Inspiring stories about the people and places building our future. Created by Steven Johnson, edited by Ian Steadman, Duncan Geere, Anjali Ramachandran, and Elizabeth Minkel. Supported by the Gates Foundation.",
      "url":"https://medium.com/how-we-get-to-next",
      "imageUrl":"https://cdn-images-1.medium.com/fit/c/400/400/1*Qbl-AvxrT0FL4FFCGaHDUw.png"
   }
]
gustawdaniel commented 5 years ago

@kylewm why you closed this issue? Was this problem solved?

kylewm commented 5 years ago

Ah sorry, yes it was fixed