How to get ID of the author - Blogger - html

Does anyone know how to get the ID of the poster? The platform I use is Google's blogger.com
I know I can get the id of the posting by:
data:post.id
But how can I get the id of the author?

According to https://support.google.com/blogger/answer/47270?hl=en#posts, you can't.
You can only only use
data:post.author
to know author's name, but not author's id.
Be aware that I have found some data tags which work but are not listed there, even though it's the official documentation. But in this case I think it's not possible, because some time ago I also wanted this, and I couldn't find anything.

Related

Instagram Media Endpoint Paging

I'm currently looking at reading out posts and related json data from a given number of Instagram users using the following URL:
https://www.instagram.com//media/
This will only bring back the latest 20 posts. I have done some hunting around and I am unable to see how to form the url to bring back the next 20 results. I've seen some places that have suggested using max_timestamp, but I can't see how to make this work.
For various reasons I do not wish to use the standard Instagram API.
You should use a max_id parameter to pagination.
Example: https://www.instagram.com/[user-login]/media/?max_id=[last-min-id], where [last-min-id] is a minimal id from previous page. The id does not repeat in new page.
This endpoint 'https://www.instagram.com/[user-login]/media/' is currently turned off in the last few days, unsure exactly when.
If you are dependant on it, you might want to check it now in your apps.
e.g. https://www.instagram.com/fosterandpartners/media/

Searching gaana database for a specific output

I was surfing gaana.com music website that has also released its developer version api.gaana.com. The documentation of api is here http://developer.gaana.com/resources/meta-data-api/tracks/
I wish to query the database but i am struggling with the syntax and I am unable to follow the documentation guidelines. try and retry got me a Json result but I dont know how to put conditions.
Example, I want to search the database for all tracks where the artist name is "kishor kumar" and the rating/popularity of the track is 10. I tried the below url but it does not satisfy the artist name. Can someone help me how to use this api?
http://api.gaana.com?type=song&subtype=most_popular&token=b2e6d7fbc136547a940516e9b77e5990&format=JSON&order=alltime&language=hindi
In the Search API(Search Song) you can see,
APIURL/?type=search&subtype=search_song&key=disco deewane
Just replace disco deewane with kishore kumar.
For example, http://api.gaana.com/?type=search&subtype=search_song&key=kishore%20kumar&token=b2e6d7fbc136547a940516e9b77e5990&format=JSON&order=alltime&language=hindi
There are 6486 tracks listed.

Vimeo API v3: Get videos by Album id

In v2 we had the api endpoint: vimeo.albums.getVideos where you could specify a particular album id to get its videos.
In v3 I do not see an equivalent, only the https://api.vimeo.com/me/albums/{album_id} which is only for the logged in user.
Am I looking past it, or has the album by id been removed? (I am still collecting info for specs so not yet able to experiment with things like /album/{album_id})
TIA
/me is simply an alias for /users/{user_id}.
If you know the users user_id and the album id you can get the videos with /users/{user_id}/albums/{album_id}/videos
Have the code set up to where I can actually try it now, and yes:
https://api.vimeo.com/albums/<album_id>/videos
works fine, although undocumented. Hopefully that's just an omission & there's no plans to remove it.

determining if a status update is a retweet using api 1.1

I want a simple, robust way to identify retweets in a hashtag search using twitter api 1.1.
For example, if I send the following request with the proper authentication:
https://api.twitter.com/1.1/search/tweets.json?q=%23stackoverflow
I'll get the last 15 tweets tagged with #stackoverflow.
It looks like only retweeted status updates have the 'retweet_status' property. Is checking to see if the tweet has a 'retweet_status' property a reliable way to determine if it is a retweet?
'retweet' and 'retweet_count' don't give me what I need.
sounds rather like you've answered your own question. retweeted_status is present when the retweeter has used Twitter's official Retweet function.
However people still to the old style RT: <quote> approach which won't give you any solid data bindings in the data returned from the API. The only way to handle these is to compare the text and see if the original text is contained. If they've modified the text then you're stuck, but then if they've modified the text then technically it's not a Retweet - it's just plagiarism ;)
Thought I'd share my solution...
if (eventMsg.retweeted_status == null) {
//run code
}

Bug in Drive API : parents.delete does not always returns http 404 when parentId is not a valid Id

I've just found a weird bug in the parents.delete request in drive API.
I try to delete a non existing parent reference of a given file with these parameters :
fileId = validExistingFileId
parentId = nonExistingParentId
By non existing parent, i mean an id that produce a 404 error when requesting it using File.get
I have two different results : when nonExistingParentId is something that does not even look like an id, say 642187, i get my wanted 404. But when it is something that "looks like" a valid id, i got a 204 response, which would be the wanted response if parentId was indeed referencing a file in my drive.
I know this is not very clear, so if a Google man want to take action on this behaviour, I'll gladfully give him the specific ids I tried
EDIT
Maybe I need to clarify a bit.
I'd like to know if it is possible to be sure to receive an error from the API if either parentId or fileId references an unexisting resource in Google Drive, which is not the case with my curent process.
And a little thing for the downvoters here, whom I never saw answering or commenting google-drive-sdk questions : SO is the only access point to he Drive API support, even if i still got no answer from google concerning most of my questions. Maybe using SO as a bug tracker is not one of the best practices at Google, but who am I to change that ? So please, think twice before closing/downvoting Drive related questions.
Best Regards