Upload videos to youtube from asp.net app without API - c#

I just wanted to know
It is simple to upload videos to youtube in c# but i want to do that without using their API. I am going to create a webpart for office365, so i can't use any external dlls. Only the .NET framework's assembly i can use.

Incase you want to upload to youtube you should use their apis, otherwise there is no way you can upload on to youtube, incase your problem is install APIs on office365 cloud, then you can look for Webservices to upload to Youtube, in web services case you have no dlls to register on the cloud.

No not simple, you have to create something that does what their API does. You do not have to build all functionality, only what you need. But still; not easy.

Related

Upload files to a specific folder on Onedrive in web application

I want to upload files to a specific folder on my onedrive using C# in web application. I am not able to find any sdk for that. All i can find is sdk for windows phone application. Thanks you in advance.
The OneDrive SDK is still valid for use in any .NET language/platform, including ASP.NET.
For web-based applications, you'll need to handle authentication yourself though. Because of the various ways of authentication a web app, the SDK didn't provide a prescriptive authentication solution for web apps.
You can either code the OAuth 2 implementation or use an existing library to connect it up (like using OWIN). Once you have an access token for OneDrive, you can provide the token to the SDK and then use the SDK as normal.
The webhook sample project in the OneDrive org has an example of how to provide an access token directly to the OneDrive SDK by way of creating a OneDriveAccountServiceProvider.

Can I move a Google API implementation to a web-service?

I have an in-house CMS system written in ASP.NET C#, and I need to implement a few pages that can allow the user to access and alter their Google Analytics management settings using the Google Analytics management API.
I have added the Google.Apis.Analytics.v3 library from NuGet, and I managed to make it work using OAuth2 authentication.
However, the library installs several dependencies, and some of them are upgrading some of my existing DLL files. This is not good, because I have a lot of functionality in this solution and some other solutions that are based on these old DLLs.
Would it be possible to move all the Google API implementation into an external web-service and just call this from my CMS? That way, I would not have to upgrade the CMS's old references. The only problem that I've run into with this is that I have no idea how to use OAuth2 to allow the CMS user to use his own Google account since all this is now done in the web-service, and the authentication page from google will not open in the user's browser.
I don't think a web service will work. The user needs to be prompted for authentication with the web browser. You cant really do that from a web service and return the proper authentication.
The Google .net client lib uses the newest DLLs you may want to look into upgrading yours.

Building a remote command for Elpis in C# through HTTP API

I am helping to build Elpis, which is an open source pandora music player, built with C# and WPF.
Now what i want is to add an HTTP API so that the user may control the program through a browser, like play/pause, like/dislike the current song.
The point afterwards is to control the program through a mobile device accessing the HTTP API.
How exactly should i build the HTTP API so that it can control it?
Github for the project: https://github.com/adammhaile/Elpis
Without knowing why exactly you want the user to control a GUI application via the browser, it's hard to give you good advise.
Assuming you are running your GUI on Windows, take a look at OWIN and the project Katana. They allow you to easily host HTTP interfaces in your own application.
It may be overkill for your project but I would suggest using ASP.NET Web API so that you can build backend web services.
The easiest way to do what you want, assuming you really want to "control the GUI remotely" is to just install TeamViewer on your PC and on your mobile device. Then you could remote in and completely control your GUI.
But I what I think you're after is something more like Google Music. Where you can stream your music through the Internet and onto your mobile devices. If this is the case, I recommend you look at the ASP.NET Web API.
It's not hard to build a web server in C#. You can embed it into your application, and expose parts of your application to HTTP endpoints as an API. You can use the HttpListener class which is part of .NET, and do everything from the ground up yourself. Or you could use something like Nancy, which is a lightweight framework that provides a lot of useful scaffolding like URL routing.
Ended up using Kayak(https://github.com/kayak/kayak) for my self-hosted API.
The example of integration can be seen here:
https://github.com/adammhaile/Elpis/blob/master/Elpis/WebInterface.cs

From my own website programmatically POST a video on my user's Facebook Wall

I keep finding posts about preparing websites to be "postable" within the Facebook Status update (like with a youtube link that when typed from on the Facebook Status Update edit box and it will display in your TimeLine).
What I need is the opposite:
From my own website, I would like to have a button that when clicked, it should automatically post a specific video that is hosted within my website (or I could post a specific webpage that has the video inside).
What's the process to accomplish that?
Do I need Open Graph?
Do I need an Facebook App?
Do I need to use FQL?
Can I achieve this solely using FB Javascript SDK?
Should I use FacebookSDK for .Net (I'm using Asp.MVC and C#)?
Please any help would be truly appreciated.
I'm so lost on this one !!
Do I need Open Graph?
The Graph API is the primary way to get data in and out of Facebook's
social graph. It's a low-level HTTP-based API that you can use to
query data, post new stories, upload photos and a variety of other
tasks that an app might need to do.
How to Use Graph Api Take a look at FB Docs. The Graph API and Quick Start
Do I need an Facebook App?
You need to create facebook app. Its required for authentication
purpose. when you read and write its must need access. If you create
you will get APP ID and APP Secret ID to give the access.
Go Here and get logged in and Create an APP.
Should I use FacebookSDK for .Net (I'm using Asp.MVC and C#)?
If you are okay to go with C# with ASP.NET then in FaceBook Official site they are suggesting many third parties SDK which is free. For
Authentication, File Upload and Download you can use the SDK.
Click here to Go
Can I achieve this solely using FB Javascript SDK?
I'm not sure whether you can use FB Javascript SDK for uploading. I
just guess you can't use. Take a look how they are using FB
Javascript SDK.
Do I need to use FQL?
Facebook Query Language, or FQL, enables you to use a SQL-style
interface to query the data exposed by the Graph API. It provides
advanced features not available in the Graph API.
FQL Why and What? Read Here

Oauth 2.0 to vimeo using c#. Next step: uploading a video to vimeo

I've been doing a quite a bit of research on how to authenticate with vimeo.
Problem is, I have yet to find a decent solution with C#.
The wrappers I've found seems outdated and does not have an option to upload a video after authenticating.
Any suggestions on where i should start?
Would it be better/easier doing it with JavaScript?
If you use Vimeo's new API (https://developer.vimeo.com/api) they use OAuth 2.0 which is MUCH easier.
Additionally, in either version of the API uploading does not need to be signed so you don't need an authentication library for that part. You need authentication until you get the upload url, upload your file without authentication, and then complete the file with authentication.

Categories