API for Google Docs Viewer - google-docs-api

Please refer the below thread from Google Documents List API Group and someone please suggest me a solution.
Hi again Jags,
Sorry, I missed one thing, you might be able to use the embed link, i.e. that link with rel http://schemas.google.com/docs/2007#embed. That will give you a link to embed the resource.
Regards
On Tue, Mar 27, 2012 at 10:59 AM, Ali Afshar wrote:
Hi Jags,
Sorry, there is no real API there as such to do what you want to achieve. You should probably export it as a format that you can embed in your page.
Regards
On Sat, Mar 17, 2012 at 3:18 AM, Jags wrote:
Hi,
Can someone help me in figuring out if there is an API available to use Google Docs Viewer where I want to upload a document and it should give me a Google Docs View Url for the document so that I can embed it in our website. Currently in Docs Viewer, the only option I find is viewing a publicly available document by passing the url for it as a param as in http://docs.google.com/viewer?url=xxxxxxxxxx. Is this the only way that I can view in Google Docs. Please someone assist if I missing something.
If this isn't possible by Docs Viewer is it supported in Google Docs where I'll upload it to user's google account and thereafter even the author of the document should have just a VIEW only option for the document.
TIA,
Jagadeesh
Now can someone please provide me a Java sample code to set the 'xmlns' as 'http://schemas.google.com/docs/2007#embed' to the document entry. I am getting an InvalidEntryException.
com.google.gdata.util.InvalidEntryException: Invalid request URI
GDatainvalidRequestUriInvalid request URI
So please suggest me a possible solution to resolve this.

+1 to this one
Blockquote
Now can someone please provide me a Java sample code to set the 'xmlns' as 'http://schemas.google.com/docs/2007#embed' to the document entry. I am getting an InvalidEntryException. com.google.gdata.util.InvalidEntryException: Invalid request URI GDatainvalidRequestUriInvalid request URI So please suggest me a possible solution to resolve this.
After reading this thread, even I'm looking for a java example ob how to set the 'xmlns' as 'http://schemas.google.com/docs/2007#embed' to the document entry.

Related

Using IMPORTHTML against Parkrun data and returning N/A

I am using the following call in google sheets
=IMPORTHTML("http://www.parkrun.org.uk/harrogate/results/eventhistory","table",1)
this used to pull in the table beautifully but has recently stopped working.
Anyone know why?
Cheers
Jon
I'm guessing:
A change in their robots.txt file, which presently mentions:
robots.txt for parkrun event websites http://www.parkrun.org.uk http://www.parkrun.dk etc parkrun results are Copyright (c) parkrun. Results are made available for personal, non-commercial use only. We request that automated scraping does not take place. If you have a legitimate requirement, please contact techsupport#parkrun.com so we can discuss your requirements. See also http://www.parkrun.org.uk/scraper.html
and Disallow: includes:
/*eventhistory$
/*eventhistory/$
/*eventhistory.aspx$
However, Excel has no issue with robots.txt in this case.

Google Analytics Custom URL Reorting

I have used custom url builder to build custom url and submitted to different directories.
URL is
?utm_source=directory&utm_medium=referral&utm_campaign=DirectoryReferrals
Now i am stuck with reporting coz it shows source as "directory" thats what i need it to show but full referral part is showing as not set.
How can i get full url of the referral source? Need help as soon as possible.
Is there any way to get the url of the referral?
I think you may be misunderstanding the usage of the utm_source parameter in the context of custom campaigns. It wouldn't be used to get the source URL that you used when tagging your campaign, but rather it should show the source where the campaign is originating from, for example advertiser, site (eg. "google"), publication (eg. "newsletter", "billboard"). More information on campaigns can be found here: https://support.google.com/analytics/answer/1033863. Also some good info on why you are getting "not set": https://support.google.com/analytics/answer/2820717?hl=en.
If you are trying to see where traffic is coming from, eg. www.google.com, www.facebook.com, then you wouldn't use custom campaigns for that.
Hope this helps.
I agree with Nyuen, you might have misunderstood the concept of UTM tracking code.
I would suggest that if you want to know that from which referral source you got the traffic then you can write it under UTM_SOURCE.
Suppose if you have promoted your post in the Facebook and Google, then in the UTM_SOURCE you can write Facebook there.
Example:
http://www.grazitti.com/resources/webinars/5-must-have-features-for-your-service-cloud-implementation.html?utm_source=Twitter&utm_medium=Webinar_Tweet&utm_term=Service_Cloud&utm_campaign=Social
Hope this Works :)
You always able to find your refferal traffic under > Acquisition > referral even you tagged link with utm.
If it's not help, please upload some screenshot.

Can the REDDIT Api be used to send a PM to another Reddit user?

I have been looking at the REDDIT api documentation, and just by looking at it, it seems that one CANNOT(?) send a PM message to another Reddit user. Please, prove me wrong :)
Is it possible to see another user's subredddit subscriptions?
Thanks for any input.
You can send PMs through reddit's API with compose.
You cannot see other users' subreddit subscriptions.
Depending on the language you are using, you may want to look at existing API libraries. In my experience PRAW for python is the most feature-complete (disclosure: I am the package maintainer).

GetAllCampaignTargets not returning any targets [JAVA - Sandbox V201109]

I am facing this issue when migrating the Google API from V201101, V13 to V201109
I am trying to get all the targets using GetAllCampaignTargets
provided in the link.
For the campaign i added, i am seeing targets in "Google Sandbox
Viewer" but in output object of GetAllCampaignTargets i am seeing
totalNumEntries value as 6 but in actual entries object only 1 is
available with null targets.
Could you please help me to sort out the issue.
Thank you
Balaji
The official forum of AdWords API is http://groups.google.com/group/adwords-api. I recommend that you ask the question there, since the official developer of the PHP library regularly answers questions on the forum. Also, turn on the SOAP logging (the settings are in src/Google/Api/Ads/AdWords/settings.ini), and POST a sanitized SOAP request and response xml for the failing request. Someone will answer your question in a day or two. Make sure you sanitize the xml before posting, do not provide email, password, authToken, developerToken, etc.
Cheers, Anash

Integrate Google Search Appliance with Rails Application

I wanted to integrate GSA with Rails. But the web proved to be un-helpful. Anybody knows any step-by-step tutorial.
First, you have to call the GSA with the search query. The reference informations for generating the GET-request is here: http://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#SubmittingaSearchRequest
Then you will receive a xml response from the GSA with all needed information inside. The reference for the xml nodes are here (Look better at a xml response from your GSA and get additional informations in my link): http://code.google.com/apis/searchappliance/documentation/610/xml_reference.html#results_xml_tags
Last but not least, you have to parse the informations within the xml and generate your custom frontend.
I hope that will help you. It isn't really complicated.
Define "integrate" closer. The most things are language independent and have nothing to do with Rails/Java/.Net or whatever
Try using the gem rails-gsa this will help you a lot in integrating the Google Search Appliance with your rails Application.
Check out the documentation on github https://github.com/rohit9889/rails-gsa

Resources