Spaces API not returning all spaces

57 views
Skip to first unread message

Jan Myszkier

unread,
Sep 4, 2016, 8:40:56 AM9/4/16
to Assembla API Development
I have over 50 spaces in my portfolio account but only 45 spaces are returned when I query spaces.json API.
How to query all spaces at once? Or if I need to do two separate request, how to query for remaining spaces?

Jan Myszkier

unread,
Sep 4, 2016, 11:43:11 AM9/4/16
to Assembla API Development
might be worth to note that querying
spaces.json?page=1&per_page=100
still returns 45 spaces

Stanislav Kolotinskiy

unread,
Sep 13, 2016, 4:18:18 AM9/13/16
to assembla...@googlegroups.com
Hi Jan,

I checked out the same request for your portfolio using curl and got 55 spaces. Can you please recheck?

Regards,
Stanislav
--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jan Myszkier

unread,
Sep 14, 2016, 3:46:25 PM9/14/16
to Assembla API Development
just a slightly edited response I got from Stanislav that shed some light of it not working:

the link you pointed to is not about Portfolio spaces - here's the one that you might want to check out - http://api-doc.assembla.com/content/ref/portfolio_spaces_index.html .
The URL in that page is 
https://_portfolio_subdomain.api.assembla.com - however, this is deprecated (and unfortunately we didn't update documentation), so you have to point your requests to https://api.assembla.com and pass portfolio param with your portfolio URL name.

so, considering your portfolio address is:
companyname.assembla.com, the correct portfolio url is:

api.assembla.com/v1/spaces.json?portfolio=companyname

added that workaround to our app and waiting for the assembla API team to update their docs.
Reply all
Reply to author
Forward
0 new messages