I do not know if you can help or not, but I will try)
I am writing a C # program that works with the Google Sheets API. I ran into a problem, namely: unfortunately very little information on working with the Google API :(
Now, I need examples of how the Google.Apis.Sheets.v4.Data.FindReplaceRequest request works, unless of course this is what I need.
The user enters data in the text field, after which the program must send a request to Google Sheets on Google Drive, find all the cells in which the entered data is located and delete or simply erase the lines with the coincidence of this data. I understand that FindReplaceRequest works best for this, but I can’t find an example of working with it, and in the directory at https://developers.google.com/resources/api-libraries/documentation/sheets/v4/csharp/latest/index.html very little information about this :(
I would be very grateful if you help solve this problem :)
Have a nice day!:)
Related
I've been trying to see all day if it's possible to write a web app in C#/asp.net that uses the google search engine. I've been googling about it all day. I don't want the custom search api because I'm not looking to have a search engine search through a site. I want to have my web app pass input to the basic google web search that search the entire net not a particular site so I can then parse through the first page of the search results. I put that in bold because it seems like the custom search api is for searching a particular site (my own site) which is not what I want to do and yet the only thing I could find. (well for the most part at least) The closest answer I found to my question is this https://stackoverflow.com/a/4082976/5607333 Which might do the trick for me but I don't know how to do that. How do I send search input to google search and get results using html? (or in my case asp.net) If you think it's the answer to my question can you please post an example of how it's done? I say "think" because I'm not sure it's the answer to what I'm asking.
I hope this question isn't considered a dupe to the question I linked to as I have been way more specific than it.
Also if this task isn't possible in C#/asp.net but possible in another language can someone please post an example of how it's done in that language or a link to it?
Update: I figured out what an easy solution is to this it hit while I was looking at another question similar to my problem. The solution is to edit the url and then i assume you could just concatenate it in C# with the + sign.
Update: 2 Even though I figured what I specifically was having trouble with at the moment of writing this question I still doesn't why I can't find a google equivalent of this https://msdn.microsoft.com/en-us/library/dd251020.aspx that's not depreciated. I read an answer to another question on here where someone said it's because that's how they make their money off the ad results but if that's true it still surprises me.
Look this question:
Adding Google's standard search (not custom) to my website
you can use your own XML parser to customize the display for your search users.
with an http request like this:
GET /search?q=bill+material&output=xml&client=test&site=operations
But it has a limitation on number of requests per day, 500 or 1000 I guess
I want to import data by giving the searching option in c#. I am using SQL server database to save this data. Please help me what would I use and how to proceed. I think whether I would use a Google search API or a web crawler. I tried for Google search API but this is not helpful.
Very little information, you need to make sure that when you are creating posts that you clearly specify what you are attempting to do and what code you already have. You'll find that just asking how to do something isn't received well by the SO community, try and when you fail, we'll help.
Now, I'll give you a nudge in the right direction with what you are trying to do. Read up on how to incorporate SQLDataReaders into your application. Link below:
http://www.dotnetperls.com/sqlcommand
Please help. I am looking for a way to upload a file to Google Drive with my app. The Google Account in question will be a specific one, i.e. not the client's account, a 'Service' account. I've tried to Google it, but I can't find anything that seems to do what I want, And the API reference I probably don't understand. I have been thrown in the deep end for a project. Any source or links to help Please! I am not asking anyone to write my source, but if it exists, it would be nice.
Note: This is my last hope. I don't ask a question unless there is nooooo other way.
(I am using Windows Forms)
Thanks
Jacques
EDIT: It is always signing in to MY drive, whether I am using it or you are using it. I have also posted this question to CodeProject to harness maximum brain power.
PermaLink: http://www.codeproject.com/Questions/652006/Upload-from-Csharp-to-GDrive
This page tells you what you need to know about authorizing a service account https://developers.google.com/drive/service-accounts
This page shows you the C# required to upload a file, once you have been authorized https://developers.google.com/drive/v2/reference/files/insert
Treat the authorization and the uploading as two separate problems and you'll find life much easier. The end result of the authorization procedure is an access token. Give that access token the insert API and you're all set.
Some day the professor tells to me that he want to do a website that needs much data, and he wants me to do the copy and the stick that we should bring the links's content to the Excel, but it's too much.
So I need to to do a program (C#) that it could catch the Html's links what I want and export them to an Excel document.
If somebody knows a little about it, please tell me some ideas. Because It's my first time to do the work, and I don't have the ideas to do preparation.
Just tell me what I must learn. Just take several minutes for my work which takes too much. Thank you too much!
Although there are many ways to access the page itself: WebClient, or HttpWebRequest/HttpWebResponse if you need something more complex. I believe that using Regular expressions to parse the pages(once you get them) and retrieve the links is definetly the way to go.
The term you should look for is web scraping. Very easy to do using simple C# code like this. Also writing the excel file (example) is something very easy to find searching for it on Google.
I have a facebook App that for some reason it got banned.
How can I find out programatically (FB C# SDK preferably) at login for instance that the application got banned?
There are no exceptions or other markers that I noticed so I could figure out this.
I am open to any ideas.
The app is not doing anything un-ethical but it pulls up a lot of data and there is a possibility that FB might not like that. So in order to keep it live, I want to know when the app got banned so that i can replace it on the fly with another one, until the issue gets resolved with th first one. FB gives you an answer only after 2+ weeks.
You might be able to use the installable field in the properties array from admin.getAppProperties outlined here: https://developers.facebook.com/docs/reference/rest/admin.getAppProperties/