want to know DATE FORMAT of Yammer API for passing query parameter as date in URL - yammer

I found these links on this site itself..
GET https://www.yammer.com/api/v1/users/{USER_ID}/modified_before/{DATETIME}.json?access_token={ACCESS_TOKEN}
GET https://www.yammer.com/api/v1/subscriptions/created_after/{DATETIME}.json?access_token={ACCESS_TOKEN}
I want to know which date format do i need to use to run my URL properly.
Any kind of help is appreciated

I can't find an example of the requests you've listed. The only example I've found online was someone asking if it was possible to do that with the Yammer API, and the answer appears to be no.
Take a look at the Yammer Ruby gem for example, there is no option as you've described: https://github.com/yammer/yam/blob/master/lib/yammer/api/user.rb
So it's not a matter of having the right timestamp format, it's that the API doesn't support what you're trying to do.

Related

Google Drive API - how many times a file has been downloaded?

I have been trying hard to find any information on how to see how many times a file in Google Drive has been downloaded. I have tried looking into Drive API, Google Activity API and a number of forums, but I can only find info about how to download a file, nowhere about download stats, i.e. number of downloads.
Any suggestions or hints will be greatly appreciated.
Thanks.
You can't.
But you can use Google URL Shortener and cut short the original link of this file then give the link to your friends; after this you will be able to see how many clicks are clicked at that link. You can also view any other details you need like Countries, Referrers, Browsers, Platforms and more!
At this time (2015-11-07), I don't think there's any way to do this via any Google API. Google's server logs would let you answer this, but I don't believe you can get access to them.

Google Custom Search API- Get results specific user location

As in normal Google search page, Google returns me results specific to my location. As i am considering/assuming for this, it gets my ip address my request, find uses location for it and returns the results.
I am writing the proxy server for search engines. So from user browser i get requests for some search terms and server returns search results.
I am curious to know, if from Custom Search API can i get the such results based on some IP address i provide or anything like that, so that i can mock the user location in my proxy server and pretend the Google Custom Search to be that user and get the location specific results
PS.I am new to this search engine api world, so please understand me.
Yes, you can, but just for the country, not the exact location.
Here is the docs for parameters of a query request:
https://developers.google.com/custom-search/json-api/v1/reference/cse/list
Look at the 'gl' parameter.
I'm not aware of any way to specify the location more precisely then this.
After these many years I'm not sure if you still need it, but I found it hard to find a helpful answear, so here's the solution for whoever needs it.
You can achieve that behavior with the "?gl=" query param as mentioned here, and pass the value as one of the country codes.
Worked for me, hope it helps someone!

Google Places API: all place details wanted

I'm trying to obtain some details on a Google Place with http-request. This is a place I'm looking at: the place page.
There is a 'Category' field there with 'Volleyball Court, ...'. But when I do a request I don't see these data.
How can I obtain full detail on a place with http request? If you know non-http way to do it, please let me know anyway.
Thanks
Star this issue and hopefully they will eventually add support for it.

Does Firefox stores keywords in its Google Analytics cookie?

I'm trying to extract the keyphrase someone used to land on a website. And since I have the Google Analytics script, I should be able to get the cookie name ___utmz and then look for the string "utmctr=...." to find what keywords.
However, in Firefox, no matter what, I always see (not provided)
utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)
Is there a way to extract the keywords if someone visited using FF?
This has nothing to do with Google Analytics or Firefox but instead is a result of how keywords are handled for SSL searches with Google. In those cases, Google search will not pass along the keyword in the referral and instead sets the value to (not provided). For details see the keyword section in https://support.google.com/analytics/answer/1033173

Ruby access/submit queries on websites

Say I wanted to create a ruby script that would access google, search for 'dogs', and then return the links of the top 5 results. How would this be implemented in ruby?
Thanks.
To clarify, I'm not looking for a way to search Google specifically. I want this to work on other sites too, such as amazon.com, dictionary.com, etc.
See the answer to this question: Using Google Search REST API in Ruby
You could hack through it with hpricot, if a google api doesn't exist already. Or here is a script
I would use cURL to actually GET the page contents (its a simple GET request to google.com/?q=stuff). Then you'll need to use regular expressions and intuition to parse the DOM, extract the links, and display :)

Resources