List Dropbox Files using REST API - c#

I want to list all the files of a folder from my own Dropbox account on my website. I was going to use C# and the Dropbox Rest API but from reading the documentation it appears that I can't do that without first getting the user to go to dropbox to receive an authorisation token.
Is this correct? Is there anyway I can return the data in code without asking the user to log in?

Actually no.
You need to authenticate first using OAuth and than get list of files. Documentation is here
Also as tutorial here:
https://github.com/geersch/DropboxRESTApi

Related

Is possible download file from drive.google without credentials

I searched this subject at many web pages and I tried; but every time web page verification window appears. Already I have ClientId and SecretKey. Is that not enough? I want to do this with c# but without credential.
The easiest way would be via the C# api. You can create an api key and use the library to download files by authenticating with that api key
Google Drive .NET api

Upload Videos to Youtube WITHOUT OAUTH

So I am making a program to upload YouTube videos to my clan channel so that I can distribute it to the other clan members and everything is all set...
They open the program, they browse the file, set the title, the privacy and press Upload. DONE
If they want they open the thumbnail changer, browse for the thumbnail press Upload. DONE
It works great!... In my computer, how can I make it that it works for everyone? because everytime I share it with one of the members... it doesn't work because they need to login using OAUTH (to one of their accounts).
Thanks for helping!
I'm coding in C# but that is not relevant at all.. by the way I've already tried older methods present in the API but it returns invalid request.
There is no way to use the YouTube API without Oauth. If you want to access private user data you need to have the permission of the user who owns the data.
Your only option would be to authenticate your code once and store the refresh token and use it when the others want to access your data. If you are using Google .net Client library check filedatastore its storing your refresh token.
Here is the code for uploading videos to youtube without OAuth, You only need API key, Username, Password.
https://developers.google.com/youtube/2.0/developers_guide_dotnet?csw=1#Direct_Upload

Upload created xml file to Google Drive at certain intervals

I would like to upload specific xml file to my Google Drive account at certain intervals. My application creates xml file every 30 seconds. Xml file name is static. I develop my desktop application in .net platform and i am using C#. I examined this url's instruction. When i applied codes sample to my application, web based auth need to upload file.
My question is, can i upload xml file without web based auth.
Thanks in advance.
If there are no user accounts that needs to be involved -- if you're not uploading to a user's account -- you can use "service accounts". There is a good introduction into service accounts on https://developers.google.com/events/8400075-3001/
If a user account is involved, it'd suggest you to ask permissions for offline access. So, you can retrieve new access tokens as current expires. Read more about offline access on https://developers.google.com/accounts/docs/OAuth2WebServer#offline All of our client libraries are supporting it. You can manually retrieve the an access and refresh token initially by exchanging with OAuth2 endpoints. Persist these tokens to inject them into the client library you're using. OAuth2 playground also explains the flow more in detail on https://developers.google.com/oauthplayground/

How to get the authorization code for Google drive API access programmatically?

I need to download a file from Google drive. I got the code to do that here. In this code they launch a web browser process with an URL which asks user to authorize the API access. After authorization, it provides authorization key which needs to keyed in to our process to actually continue (This is typical oath-2.0 procedure). I want make the entire procedure automated without any user interaction. Thanks in advance.
You can use a service account to get API access without user interaction, however there seems to be no official .NET implementation for it right now.
Someone created a sample here on how to use a service account with Google Analytics in C#.

Upload a file to a Dropbox account in C#

Supposing I have a user's log in information for Dropbox (his e-mail and the password), how can I upload a file to his account from C#? Is there any way or should I try with another service like Skydrive or Google Drive?
If you want to use Google Drive, the documentation is at https://developers.google.com/drive/, however, you should never ask for other users' credentials and instead use OAuth 2.0.
The reference guide includes C# snippets and there's also a complete ASP.NET MVC tutorial that you can use to get started: https://developers.google.com/drive/examples/dotnet

Categories

Resources