I'm trying to build an application in .net, and using google alerts (the feeds part).
Right now i am searching for API, or some way to interact with google alerts, but no results so far.
It will be very good if anyone can provide me with that google alerts API.
OR
A way to interact with it.
Thanks in advance,
-Sea
If you set up your alert set the delivery method to feed, this will create a standard RSS feed which you can consume using an XmlTextReader or XmlDocument
There is a .net implementation of an api for google alerts here: http://coders11.com/googlealertsapi
I've used this before and its easy to use and works great
http://frickingnutz.com/?q=node/51
There is Google Alert API for C#:
https://github.com/oscar811/GoogleAlertAPI
Related
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.
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
:)
I'm working on a program in Visual C#.NET and I need some help.
I need it to be able to take in some text through a text box, then somehow send that text to google, and bring back the resulting URLs (not the full results, just the URLs) and then display those in my program. How would I do that?
Use the WebClient class to send the query to Google and read the response.
Alternatively, use a .NET library that interacts with the Google search API, like this one (this was just the first Google result).
There are also REST libraries for .NET, if you go with the newer custom search.
Unfortunately the Google Web Search API is deprecated and no longer available. However the next best thing IMO is Google Custom Search Engine.
I can't seem to find any code examples anywhere online that even hint at any way to use the Facebook API or Facebook SDK with C#.net (or even VB.net) to use the Facebook Credits features.
Does anyone know of any .Net examples that could help show how to use the Facebook Credits features?
Most of the calls required to use the credits API are actually just graph calls which will work fine with the C# SDK. The other stuff like the the callbacks you are going to have to do own your own.
Well i think the Documentation by Facebook is Sufficient enough.
I have not used Facebook C# SDK but For use in .Net you can simply use HttpRequest/HttpResponse classes to do Send/Recive data.
For parsing JSON you can use JSON.Net or use JavaScriptSerializer Class.
Here is an Example with JavaScriptSerializer. Its for Facebook Feeds but you can use somthing similar for Credits too.
I see this is an old one, i'd like to contribute, having just fought this fight, and resorted to using network monitor to capture the raw tcp traffic to figure out what was going on.
Facebook is NOT sending a content-type of json, its
"ContentType: application/x-www-form-urlencoded"
They aren't sending JSON!! they are sending a form post
This caused no end of grief for me. I'm including an actual network snag of their data. I have no idea what they are doing , and its directly against their documentation. https://developers.facebook.com/docs/credits/callback/
"signed_request=[The signed request]&buyer=[my id]&receiver=[my id]&order_id=247146405372045&order_info=%22100credits%22&test_mode=1&method=payments_get_items"
TO tie it more directly to the question, if you're using asp.net, you can just accept a form post. If you using WCF, its a hassle
Accept Stream as the input to your WCF method
parse it out,
//Get the Stream
var postStream = new StreamReader(input).ReadToEnd();
//parse the string
var vals = HttpUtility.ParseQueryString(postStream);
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/