what is baseURI field in gData? - c#

I was trying to integrate Google Docs to a Windows app. In the DocReq class there is a property called baseURI. I have no clue what it is. Also, let me know if there are any examples for the Google Spreadsheets in C#

The baseURI is simply the base URI for the Document request. This wikipedia article explains a URI
http://en.wikipedia.org/wiki/Uniform_Resource_Identifier
Here is another question from Stackoverflow that has some examples about google spread sheets in c#
Accessing Google Spreadsheets with C# using Google Data API

Related

How to convert facebook shared youtube link to actual youtube link using C#?

I'm trying to convert Youtube link on Facebook to it's original Youtube link.
But I could not find any code similar to this purpose.
I'm getting video url in this format, when posted on facebook
https://www.youtube.com/watch?v=https://m.facebook.com/story.php?story_fbid=137180674769618&id=744284273020098&refid=18&_ft_=qid.6890741645663138454%3Amf_story_key.778345062947352%3Agroup_id.744284273020098%3Atop_level_post_id.778345062947352%3Atl_objid.778345062947352%3Acontent_owner_id_new.100054330590900%3Apage_id.744284273020098%3Asrc.22%3Astory_location.6%3Astory_attachment_style.share%3Afilter.GroupStoriesByActivityEntQuery%3Atds_flgs.3%3Aott.AX89EZnntOWyt_cV%3Apage_insights.%7B%22744284273020098%22%3A%7B%22page_id%22%3A744284273020098%2C%22page_id_type%22%3A%22group%22%2C%22actor_id%22%3A100054330590900%2C%22dm%22%3A%7B%22isShare%22%3A1%2C%22originalPostOwnerID%22%3A0%7D%2C%22psn%22%3A%22EntGroupMallPostCreationStory%22%2C%22post_context%22%3A%7B%22object_fbtype%22%3A657%2C%22publish_time%22%3A1602049213%2C%22story_name%22%3A%22EntGroupMallPostCreationStory%22%2C%22story_fbid%22%3A%5B778345062947352%5D%7D%2C%22role%22%3A1%2C%22sl%22%3A6%7D%7D&__tn__=C-R
What I need to find, is the originally posted YouTube link like following..
https://www.youtube.com/watch?v=xxxxxxxxxx
Where should I start to achieve this? Any help would be highly appreciated.

Search Image in google

I need to search in google images for a photo and to take the first result and to put in picturebox.
The search is by a string that the user is picking.
please help.
I am Using c#
To hit the Google Image API from your c# code, you will need to perform an HTTP post request. I believe this post can show you how to format your request.
Also, it appears that the Google Image API is deprecated and will no longer work soon, according to this post.

How to read data from Google spreadsheet in xamarin.forms

I am searching for a way to read/write data from Google Sheets directly. Does anyone have an idea how to do that in Xamarin.Forms?
Keep in your mind access Google sheets from Windows Form working fine with me using Install-Package Google.Apis.Sheets.v4 Package.
I Used the following link:
https://developers.google.com/sheets/api/quickstart/dotnet
Reading & writing data on spread sheet is not an easy thing. I would suggest you go with WebView that might solve you issues. Here you might found some clue to do so
https://www.twilio.com/blog/2017/03/google-spreadsheets-and-net-core.html
& here on Google.Apis.Sheets.v4 API's are
https://github.com/xamarin/google-apis
& Spreadsheets with C#
Accessing Google Spreadsheets with C# using Google Data API
I created the following Solution and it is working fine for me:
You Need to use JSON result from Google sheet, try to use the following steps:
1-Publish a google sheet to get an API link that returns JSON, like the following Sheet:
https://spreadsheets.google.com/feeds/list/1opP1t_E9xfuLXBkhuyzo5j9k_xBNDx0XKb31JwLP1MM/1/public/values?alt=json
2-You need to generate C# Classes from JSON, maybe you are able to use
http://json2csharp.com To get the C# Classes and the RootObject.
3- Add The following Code:
HttpClient client = new HttpClient();
string URL = "https://spreadsheets.google.com/feeds/list/1opP1t_E9xfuLXBkhuyzo5j9k_xBNDx0XKb31JwLP1MM/1/public/values?alt=json";
var response = await client.GetAsync(string.Format(url));
string result = await response.Content.ReadAsStringAsync();
RootObject root = JsonConvert.DeserializeObject<RootObject>(result);
From the root object, you will be able to access any cell value on the Google sheet.
Despite the fact that it really isn't a good idea to use Google Sheets as your online database, there are many better alternatives, if you want to access it from a Xamarin Forms app you can do it using the Sheets API
Sheets API documentation here

Reading Twitter Stream Using Twitter APIs

I'm creating a service using c# to read stream of tweets (TimeLine) on a specific hash-tag (ex. #ReformJO), so after reading twitter APIs documentations, the most efficient way I came with is by using POST statuses/filter
The question is I didn't know where to start with my code. So if there's a kind of hint or USED example to clarify this.
P.S: Im not looking for a search method with a result, what I need is a TimeLine reader for this hashtag since it's able to be expandable at any moment.

is it possible to use c# with google spreadsheets api version 3 - specifically to use the table and record functions?

I need to access a table that has been created by a java program on android but cannot find any .net documentation and the Java examples do not seem to match up to the libraries I have, is it possible?
thanks,
Mark
The documentation for the Spreadsheets API has been updated and includes complete samples for C#:
https://developers.google.com/google-apps/spreadsheets/
I am unsure of your programming language requirements for what you are building, but if your open to using java to do this, Apache Poi (the Java API for Microsoft Documents) MIGHT help you accomplish this. Apache Poi

Categories