How to get the Podio APP response detail level mini, micro or short? - podio

At many place in the Podio API documentation, it seems that you can specify the level of details that will be in the response: Full/Short/Mini/Micro. For example in the Get App call https://developers.podio.com/doc/applications/get-app-22349
However there is not details on how to specify the level of request in the http request... what is the parameter name/values?
I tried:
https://api.podio.com/app/?fields=app.view(micro)
https://api.podio.com/app/?fields=micro
but both responses have the same level of details: full
EDIT:
It appears that the 'micro' view is not working as explain in the documentation. Where are the 'mini' view is matching the doc. See below the list of the keys returned for each view.
View Mini:
View Micro:

Please try this one: ?view=micro
curl -H "Authorization: OAuth2 <auth_token>"
"https://api.podio.com/app/<app_id>?view=micro"

Related

API Cursor Based Pagination with Curl

currently im working on a project for university. The goal is to make api calls with cmd (Curl) and transfer the data into a bi tool. I dont have any experience with coding/scripting and so on. The problem i currently have is that a single api call brings back 100 resources but i need all of the Data to visualize it.
curl -X get "https://(url)" -H "accept: application/json" -H "authorization: Basic (Username:Password) --proxy () --output () --output-dir ()
So my goal here is to create like a loop so that all of the data ist getting saved in one file.
Any Ideas?
Thank you !
Either it is in the API documentation how to get all the pages or there are Range headers or there are Link headers or hyperlinks attached to the response body for the next/previous pages or there is a MIME type e.g. JSON-LD, HTML, XML, etc. you can request with Accept header which contains hyperlinks. Without knowing the exact API it is not possible to tell which implementation the API developers chose. Maybe they were lazy and neither of them.

How do I get the URL of a LinknedIn post from the URN or id?

I am able to post to LinkedIn via the API and I get the URN/id of the post returned, but I don't know how to get the actual URL of the post using the returned URN. I cannot find the information anywhere in the API documentation.
In case you have a share or ugcPost, the following URL is valid:
https://www.linkedin.com/embed/feed/update/<urn>
or, for embedded content:
https://www.linkedin.com/feed/update/<urn>
as example:
https://www.linkedin.com/feed/update/urn:li:share:<share-id>
or
https://www.linkedin.com/feed/update/urn:li:ugcPost:<ugc-post-id>
Working link from Test Organizations:
https://www.linkedin.com/feed/update/urn:li:share:6743008621090611200

How to get all unread items using Feedly API

OK, either this is incredibly obvious and I'm just too dumb to see it, or it is not possible at all.
I created a Feedly developer access token and can call some end points just fine, like /profile, /categories, etc. Currently testing them with curl, but eventually will do this in Ruby.
What I can't find from the documentation (or even by Googling) is how to access all the unread entries from all my subscriptions just like I do in the Feedly app:
As far as I understand, Streams are for specific feeds. And the closest thing to the All stream, I think, is the Global Resource Id "global.all". But when I call it according to the documentation I get "API handler not found".
curl -H 'Authorization: OAuth [<MY_ACCESS_TOKEN>]' http://cloud.feedly.com/v3/user/<MY_USER_ID>/category/global.all
{"errorCode":404,"errorId":"ap5int-sv2.2018082612.1607238","errorMessage":"API handler not found"}
At some point I thought maybe Feedly just doesn't support this and went and looked at Inoreader's API documentation and it looks pretty much the same. There is no /All stream where I can pull my unread entries. So I feel like I'm missing something very obvious here.
What I am trying to do:
Basically I want to create an app for myself where I pull all my unread entries and flag the ones I'm interested in as "Read Later". This is part of a bigger workflow app that I'm working on.
You're almost there. To get a stream of all your unread articles, the syntax would be:
curl -H 'Authorization: OAuth <access token>' 'https://cloud.feedly.com/v3/streams/contents?streamId=user/<user id>/category/global.all&unreadOnly=true'
The <user id> can be obtained by the Profile API which can be found here.
The streams API is documented here.
Hope this helps.

Yammer API result mismatch with page view result

I tried Yammer REST API at https://developer.yammer.com/v1.0/docs/messages/my_feed.json for my_feed, algo and following.
According to the documentation these API results should be corresponding to the current user's All, Top and the following feeds in the Yammer view page.
However, it seems the REST API will always return the same messages as in following for both my_feed and algo, which does not match the messages I saw in my "All" and "Top" view.
Am I missing something or this is an API bug?

Google Spreadsheet API: Post request fails

I have a Google spreadsheet published to the web, and I'm trying to read and write list-based feeds. I have not authenticated.
I can read data using a GET request just fine.
curl https://spreadsheets.google.com/feeds/list/1WngGKZHauwBqRxgC5E6DFMiJ-J8BDsadfwerF4RE0M/1/public/full
However, all my post requests to write data come back with an error
curl --data '' https://spreadsheets.google.com/feeds/list/1WngGKZHauwBqRxgC5E6DFMiJ-J8BDlN3mMaBfF4RE0M/1/public/full
curl --data '<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gsx="http://schemas.google.com/spreadsheets/2006/extended"><gsx:id>1</gsx:id><gsx:status>1</gsx:status><gsx:user_email>1</gsx:user_email><gsx:url domain>1</gsx:url domain><gsx:highlighted_text>1</gsx:highlighted_text><gsx:complete_text comments>1</gsx:complete_text comments><gsx:created_date>1</gsx:created_date><gsx:updated_date>1</gsx:updated_date><gsx:created_by>1</gsx:created_by><gsx:updated_by>1</gsx:updated_by></entry>' https://spreadsheets.google.com/feeds/list/1WngGKZHauwBqRxgC5E6DFMiJ-J8BDlN3mMaBfF4RE0M/1/public/full
The error I'm getting is: "Sorry, the file you have requested does not exist. Please check the address and try again."
Do POST request require authentication? I can't find anything in the docs that say so.
Any help would be appreciated. Thanks.
Two things:
I think you need to use the private feed (.../private/full), not the public one (.../public/full) like you're using now. More on the private-versus-public distinction is in the API docs.
You will need an Authorization header. (That process gets pretty complicated, but there's a lot of good info here. Remember to select the appropriate scopes.)
Both are mentioned in the example about adding a list row in the Sheets API docs. (I'd link directly, but I don't have enough rep to add more than two links. Just search for "Adding a list row".)