Using Google translation through my application - c#

I have two text boxes and button in my application, one for the main text and the other for the translated text.
I am trying to do this task by Google translation API, the problem that I have to sign up my website, I am still developing and running my application on my laptop.
What can I do with the API key? How can I get it without having a website?
Thanks

Important: The Google Translate API has been officially deprecated as of May 26, 2011. Due to the substantial economic burden caused by extensive abuse, the number of requests you may make per day will be limited and the API will be shut off completely on December 1, 2011. For website translations, we encourage you to use the Google Translate Element.
As Google suggests perhaps it would be simpler than creating your own to use one thats already made:
Here: http://www.google.com/webelements/#!/translate
<!-- Google Translate Element -->
<div id="google_translate_element" style="display:block"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: "af"}, "google_translate_element");
};</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
or here: http://babelfish.yahoo.com/free_trans_service

Google says:
We highly encourage you to include an API key with each request. While
a key is not required, using one allows us to identify and contact you
to correct any problems. Read more about why it's useful to have an
API key.
Seems you don't need one.

Related

LinkedIn - Is it possible to post into my app's user's groups?

I want to be able to automatically (after getting access tokens) choose a group amongst the groups of the user and post a link and text to them.
I've tried a few C# APIs for linked in but at the time a few months back I didn't see an option to do so.
Is it possible to even do so? The word 'group' does not even exist in LinkedIn REST Share API documentation. if it's possible, any recommended LinkedIN APIs to use for C#?
"Starting on May 12, 2015, we will be limiting the open APIs to only support the following uses"
https://developer.linkedin.com/blog/posts/2015/developer-program-changes
They no longer expose group API publicly, you have to partner them first, I wish this information was more widely spread though.

C# Possible to search Google by image and downloading the first one?

Is there a way to programatically upload an image file to search in Google, and then downloading the first one (the one with best resolution)?
EDIT: The Google Search API would not work for me, as I would have much more than 100 requests per day, and I am not willing to pay, since I am not a company
Yes, there is. The Google Custom Search API allows you to submit queries (including images) and retrieve results programmatically. There are even client libraries available for multiple languages.
EDIT: After OP changed his question, basically saying that he doesn't want to use the Google API, I can only refer to this(a bit outdated) question and quote the Google Terms of Service:
1.4 Appropriate Conduct. You shall not, and shall not allow any third party to: ... (i) directly or indirectly generate queries, or
impressions of or clicks on Results, through any automated, deceptive,
fraudulent or other invalid means (including, but not limited to,
click spam, robots, macro programs, and Internet agents);
So to recap, it is possible, but it is only legal via the API I linked above.

Facebook graph API wall post alternative

I've been using a class based on Hernan Amiune's library for the Facebook graph API to allow website user's to write to their friends walls from my code. With the recent February changes the Graph API method to do this is no longer available.
Apparently I need to use the Feed Dialogue now, but can I call this from c# code? Does anyone have a sample or an alternative I can use?
In short can I write to someone's wall on behalf of another user using server side code only.
In short can I write to someone's wall on behalf of another user using server side code only?
As of the February 6 breaking changes, you can no longer post to a user's friends' wall via the Graph API. This means you can't write on someone's wall on behalf of another user in any code language or SDK. You either have to use the Feed Dialog or use Mention Tagging or Action Tagging.
From the Facebook Developer Roadmap:
Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag).
Have you looked at Feed Dialogue info which details a nice simple javascript example and even simpler a direct url example, to convert either to utilise C# seems an extremely trivial task.
See A related answer

How do I integrate google search into my C# program?

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.

C# - Xbox Live Stat Grabber

I'm working on an xbl stat grabber. I have a problem I dont understand how to get the "gamer card"
Heres an example : http://www.youtube.com/watch?v=6HA-uz_v6A0&feature=related
I already have the avatar but I don't get how you can grab the stats and recent games...
You need access to the Xbox Live API, I think you have to apply to Microsoft to get on their 'Community Developer' programme, although it's a bit hazy on the site as to whether they are accepting applications or not.
One kind fellow (who I think is a Microsoft employee) saw that this was a terrible oversight from his employers decided to offer as web service that plugged into the Xbox Live network so you can pull statistics down, you can find info about it and a website here: -
http://duncanmackenzie.net/Blog/put-up-a-rest-api-for-xbox-gamertag-data
It's very comprehensive and should give you all the data you need (Gamerscore, current status, last game played etc)
EDIT: Extra stuff that might help
I'm not too familiar with C# but the process of using the service would be to do the following in your application: -
Construct your URL with a/your gamertag as the argument
Use some URL/Networking API (C#/.NET must have something like this somewhere) to load the URL and retrieve the contents. This should return you a big string containing a bunch of XML
Parse the XML into your application using some sort of XML parsing API (again, I'd imagine C#/.NET has these things built into the framework)
From the looks of the program, the gamercard info looks as if it is just an embedding based upon the gamer tag. You can find info on embedding your Xbox Live gamercard here.
The video author said the Halo stat information is coming courtesy of a site called HaloCharts.com. I don't know if he is embedding the information, perhaps reading an RSS feed, or if he is extracting data from the HTML.

Categories