How to update content via Google Sites API? - c#

My apologies if this has already been requested/answered before, but I'm having a hard time trying to find information on the web about this. I've been tasked to find a way to directly update the content of a Google Sites page (Such as a text box or image) using the API.
I've been looking about the web for examples of doing this using C#, and have not found much to go by. I have some experience with writing/calling REST and SOAP APIs, but I can't seem to work out what Google uses for its API.
I'm struggling as to how I approach this, as the few examples I have found don't really walk through the code, so they leave me little to understand in order to manipulate it to what I want to achieve. One site I did find was Sites API Demo
Does anybody have any examples, or able to provide a simple example of updating content on a Google Site?
I appreciate any help you can give.
Mark

I realise this is an old question, but I have successfully updated the content of a google sites page using the library provided here, and following the example in the wiki.
I compiled the source as a .dll and added it as a reference to my project.

Related

Reading twitter feed using api 1.1 from c#

Ok. I thought I would fix this rather easy, but I'm not getting anything to work for some reason. What I want to do is simple; I want to create a web part displaying the latest tweets from a specific user. I'm coding C#.
I found a great post here but it's using php.
Can anyone help me to perform this simple task?
You can find alot examples over internet
Web:
http://www.microsoft.com/web/post/learning-the-basics-of-using-the-twitter-api-in-aspnet-web-pages-with-razor-syntax
Console:
http://www.d80.co.uk/post/2011/02/13/A-Simple-Twitter-Client-in-C-with-OAUTH-using-TweetSharp.aspx
:)

Where do I find the latest Google Docs API with the source code of the samples?

I've been trying to use Google Spreadsheet API in C# by following these instructions.
I downloaded the API from the official Downloads page. However, there are two things wrong with it:
The API seems outdated, because I could not find the class OAuth2Parameters mentioned in the tutorial, only OAuthParameters.
The sample directory only contains executable files and no source code. I could really use the source code of the Spreadsheet.exe sample, as it fits my needs pretty well.
You can grab the source code from the project page - I've just done that and built it with no problems. OAuth2Parameters is in the oauthparameters.cs file. I don't know if there's a binary release of the latest version of the libraries, I'm afraid.
(Note that I work for Google, but this post isn't written on behalf of Google - I haven't had much to do with the GData API, although I know someone who has, so if this answer doesn't help I may be able to get more information on Monday...)

amazon product advertising API Update issues

I'm trying to get into the Amazon advertizing API to use with one of my apps. I heard recently that there were changes and needed an AssociateTag (broughtin from the affiliate program)
After using samples from this link
http://aws.amazon.com/code/2480?_encoding=UTF8&queryArg=searchQuery&x=0&fromSearch=1&y=0&searchPath=code&searchQuery=Advertising
and
http://flyingpies.wordpress.com/2009/08/13/signing-amazon-product-advertising-api-cwcf-part-2/
I can't seem to use those samples anymore. after some digging online I found that I was supposed to add an AssociateTag to the itemSource request variable, but I created a dummy login to facilitate that andthe output is pretty much the same. can anyone help me with this?
I had the exact same issue as I based my application on the flyingpies.wordpress example and couldn't get it to work by adding in the Associate Tag Id and the latest web service>
I downloaded this example:
http://aws.amazon.com/code/Product-Advertising-API/2481
And made some small changes and got it all working...
The main one changing the namespace to:
http://webservices.amazon.com/AWSECommerceService/2011-08-01
Throughout all the code......
I think I may have updated the code in a couple of other places and can help you if these errors occur..

Access to Facebook?

As a little learning project, I'd like to make a little app that reads data from a facebook users status updates. It's been done millions of times before, I'm sure, but is there an API or something? Would I need to signup for some Facebook developers license or anything, or is it as easy as finding the API, and then simply coding to it?
I'd like to simply get friends Status Updates via my login... seems easy enough. :)
The Facebook Developer links posted above are good, but it might be useful to look at some examples.
The Facebook C# SDK, found here: http://facebooksdk.codeplex.com/, has samples in ASP.NET MVC. It's a pretty simple project, so it should be relatively easy to see how things work in practice.
You can create an app at http://developers.facebook.com/
Then, download the sample project, replace the AppId and AppSecret with values from your registered app, and see how it works.
You can start reading here: http://developers.facebook.com/docs/
And look in the forum discussions here: http://forum.developers.facebook.net/index.php
This post was helpful to me http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/
Also keep in mind this last change made for FB team about Post for canvas http://developers.facebook.com/docs/canvas/post/
Good luck!

Source code to retrieve Google Adsense earnings?

Where to find source code to read google adsense account earnings ? any language welcome especially c#, php.
Update: I still don't have any source code until now that seem to work.
Unfortunately all of the other answers are using either deprecated API or are linking to 404 pages.
Google did release a new management API for AdSense which is well documented:
https://developers.google.com/adsense/management/
Documentation is here It's a very in-depth webservice that allows you not only to get access to reporting, but also create, modify, etc campaigns.
This is an interesting low-tech approach. It's featured on the CURL website. Could be re purposed for your application.
You could use this php library http://code.google.com/p/php-adsense-account-library/

Categories