I'm trying to work with Google Cloud Storage, C# .Net4.5. The goal will be to manage millions of files that we will upload to Google Cloud Storage, the images will primarily be a backup copy.
I do have some code working using the .Net Client Library using the nuGet: \Google.Apis.Storage.v1.1.9.0.230\lib\portable-net40+sl50+win+wpa81+wp80\Google.Apis.Storage.v1.dll
What I can't find is any documentation besides what is picked up via Visual Studios' Intellisense.
I'm just looking for the full API and some examples.
Google lists:
https://developers.google.com/api-client-library/dotnet/apis/storage/v1
Browse the .Net Reference for Cloud Storage API:
https://developers.google.com/resources/api-libraries/documentation/storage/v1/csharp/latest/
But that takes one to the JSON API overview.
Can anyone kindly point to where I should be looking.
Example:
Listing objects in a bucket. I can get it to work:
listRequest = new Google.Apis.Storage.v1.ObjectsResource.ListRequest(storageService, bucketName);
The only documentation on the ListRequest class I'm able to find is what is ObjectResource.CS
Where should I be looking? Or is there just not a lot of help/doc/examples for the .Net Client Library?
Thanks again.
-andy
Click on the Classes link at the top of the page.
Here is a sample for authenticating, listing buckets and downloading objects.
Related
I would like to develop a Facebook app. I am only familiar with C# and .NET Core. Will I experience any limitations since the business SDK is not available for .NET? I am not very familiar with Facebook development.
The Business SDK relies on the Graph API, which is also public.
Directly accessing the API is very, very common, the documentation is decent, and going that route is web-based, which works from any client you've got.
https://developers.facebook.com/docs/graph-api/
I have used the Facebook Csharp SDK recently to upload hour long videos. This is a process that runs every hour and uploads a video. During this development, I found there are bugs in the SDK and I fixed it and uploaded a pull request. But I am not sure if anyone maintains that branch. But you can get the uploaded code from my github here
https://github.com/hoquem1/facebook-csharp-sdk
If you want the parent branch, you can see where I forked it from.
You need to get your permission and Tokens properly. Directions are in facebook for developer page. For Facebook Graph Api, I used the v8.0. If you need some documentations here are some useful links below. Follow the breadcrumbs..
https://developers.facebook.com/
https://developers.facebook.com/docs/video-api/getting-started
This should get you started.
I have a C# web application and I want clients to allow files insert/ update/ delete files with automatic authentication using google api client library. My first question is whether it is possible possible or not using "Service account" or any other technique.
I have started things like:
Enabled 2 APIs Drive API and Admin SD
Created a project in the Google Developers Console
Created API keys and OAuth 2.0 client IDs for the project
Installed PM> Install-Package Google.Apis.Drive.v2 for my web app. The dll version is showing v4.0.30319 and
my .net framework is 4.0
If you want to modify a user's Drive, you will need the user to be at least connected and also that he gives to you the permissions to do so.
The best way to learn how to do this is the Google Drive API, they provide a good start-up and a lot of samples for the tasks you ask for : Google Drive REST API, .NET quickstart.
If you still hits problems, there is also others way to learn : a simple google research gives good results.
For exemple, Daimto have a tutorial for exactly what you need :
Authentication
Retrieve files informations
Upload, update, delete files
Finally a project sample
If you still hit a problem, a little research helps a lot, then ask question here.
It's unclear to me how I can do an API request to retrieve data for the YouTube API.
I used this code (http://zavitax.wordpress.com/2012/12/17/logging-in-with-google-service-account-in-c-jwt/) to get an access token. The next step is: https://developers.google.com/youtube/v3/guides/authentication?hl=en#OAuth2_Calling_a_Google_API. I don't know how to use www.googleapis.com/youtube/v3/video?access_token=ACCESS_TOKEN in my application to retrieve data. How can I use my access token to request data from the API?
The recommendation is to use the Google APIs Client Library for .NET. As the webpage for the client library states, it's still undergoing active development and isn't as far along as the client libraries for some of the other languages. It still should be usable, though.
There are specific generated classes to use with the YouTube Analytics API and the YouTube Data API v3. You'll need to download those
Our C# sample code is unfortunately scarce, but there is one example of doing a video search. Hopefully that is enough to get you started.
To do anything with the Analytics API, and any write operations with the Data API, you'll need to be authenticated with OAuth 2. There's an explanation of how to do that in the client library docs.
The client library is maintained by a team within Google, but it's not the YouTube API team, so the best way to follow up with the maintainers with any issues you find is to use the public issue tracker.
I'm trying to write a C#/.NET application that can get results from Amazon's VoD service. I found this article:
Amazon API - Instant Video results
It suggests that I use the Amazon Product Advertising API to get this information. I have been looking at Amazon's getting started guide and various places around the internet and I am having no luck. A lot of the information seems to be way out of date. It looks like the latest API version is Aug 2011. Maybe of the examples are way before that.
Are there any up-to-date examples of how to use this API from C# (VB.NET will be fine as well)?
If you are looking just for items listing use the Amazon Product Advertising API BrowseNodeLookup using BrowseNodeId equal to 2676882011. Result according to this should be
<BrowseNode>
<BrowseNodeId>2858778011</BrowseNodeId>
<Name>Amazon Instant Video</Name>
<NewReleases>
<NewRelease>
<ASIN>B007R0XM88</ASIN>
<Title>We Bought A Zoo</Title>
</NewRelease><NewRelease>
<ASIN>B007PKOKTK</ASIN>
<Title>Hop</Title>
</NewRelease>
But according to multiple sources the BrowseNodeID can change without notice so the best way would be iterate thru all nodes from time to time and find the valid one.
Here you will find output from Google Cache for Amazon Instant Video
Is there an official API in the upcoming Mango release of WP7 to upload a file to skydrive?
If it is, where can I find an example and the API description?
According to this SO post:
SkyDrive functionality is not available to third-party developers. As
a matter of fact, there is no official public SkyDrive API.
Also see this other SO post.
UPDATE: (Credit to Eric for pointing out the change in API accessibility)
From the window steam blog:
The new version of the Live Connect APIs and the Live SDK for Windows
Phone has now shipped. Please read on to learn more about what’s
available now, or visit the Live Connect developer center to get
even more details.
The developer center notes that:
The Live SDK is also available for Windows Phone, Android and iOS. The
Live Connect APIs use open standards like OAuth 2.0, JSON, and XMPP,
making them easy and familiar to work with.
You can use the Live SDK to integrate SkyDrive into your Windows Phone applications. Please see our code samples on GitHub.
Windows Phone applications can use the Live SDK for Windows Phone to create, read, write or delete photos and documents in SkyDrive.
AFAIK there is no official API for uploading a file to SkyDrive from Mango/WP7... see for example http://windowsteamblog.com/windows_live/b/windowslive/archive/2011/06/07/don-t-wait-for-your-cloud-use-hotmail-and-skydrive-today-on-your-pc-mac-or-phone.aspx
You could use an unofficial client - see http://skydriveapiclient.codeplex.com/
EDIT:
Since SkyDrive is accessible via WebDAV you can use for the basic tasks like uploading a file any WebDAV-capable client...
A preview on the Live SKD has been announced at Build11.
You can signup and get the API inclusive documentation at:
http://connect.microsoft.com/site1226
The Microsoft SkyDrive "API" is implemented as JavaScript libraries. Not only do they NOT support basic general filesystem management operations, you have to instantiate a browser object and pull its chain, which is extremely kludgy.
I have directly implemented some classes that will allow you to use SkyDrive as a cloud based file system. I have not supported any of the social media aspects.
My classes will allow you to
authenticate
create and delete folders
create, read, write and delete files
Available here: http://cerulean.codeplex.com/documentation
no need for a library
oneDrive install client locally
used System.IO.File.Copy ("path to local file", "path to my local onedrive directory")