I have used asp.net(c#) web service for my project. I am calling save file function from front end adobe flex environment. My files are exists on web service folder.
My web application is an intranet application and currently used google docs api for uploading and retriving files for the project.
Now i want to use service of box.com and using box.com api, i want to upload and download the files.
Question: In google docs api, i have generated authorization code using login credential that will help to create token and using this token help me to upload files , download files and create/update/Delete folders.
How can i will do same for the box.com api ?
How can i will authorized and create token in my web services ?
Have you taken a look at:
https://github.com/box/box-windows-sdk-v2
The SDK supports .NET version 4.0 and up. For ease of installation, try pulling the package from nuget.org:
http://www.nuget.org/packages/Box.V2/
Examples are available in the readme as well as in the Box.V2.Samples solution folder
HTH
Related
Asking for your input. I have created a project athrough ASP.NET - CRUD with EntityFramework
We have to use Azure services for deployment.
This is my setup:
Created Azure SQL database.
Completed the table for the data to be stored (name, age etc.)
Create ASP.NET API and scaffold. Success. Was able to view my data on the localhost.
Created AZURE web app service and publish my API. Checking the url its working so okay.
Completed ASP.NET MVC, called my deployed API app service. Modified controllers, models and views for my webform.
Created AZURE web app service and publish my MVC. So working CRUD, success retrieval of data.
So now working on uploading image.
How will I incorporate the uploading of image for my user(for ex those who will check my project) using blob. Do I need to add the step during my creation of API since I scaffold it? I'm now confused about how I can include my image retrieval from blob storage in my setup or workflow. I just able to work in my crud and still studying for image retrieval.
I have seen tutorials with regards to incorporating blob in asp.net. The problem is that they have only this image upload function in their example. My case is I do want to incorporate it with my CRUD.
Thank you very much for your help.
Do I need to add the step during my creation of API since I scaffold it?
Asp.Net Core's scaffolding won't automatically help you integrate azure blob-related feature code.
If you want to use the relevant code in the auzre blob in the scaffolding, you need to combine the SDK or restapi to implement it yourself.
I want to create a new project in Firebase and create new android App and download there google-service.json file. Everything Using programmatically. I tried to login with third party credentials after that what to do understand.
Can this happens?
Firebase has a REST API for creating and managing projects. Since it's REST based, it can be called from any platform that can make HTTP calls (including .NET).
For more information on this API, see the documentation for the Firebase Management API.
I'm working on a project using ASP.Net MVC5 which also includes a Web API. The API will be for internal use only. I'm using the OWIN library to provider authentication.
I'm having a difficult time figuring out how to correctly implement authentication through the API. I was planning on using OAuth 2.0 but the problem with OAuth is that the user needs to login through a browser page instead of a native login screen. So I was wondering if it is possible to somehow skip the browser.
I've found this example which creates it's own OAuth Authorization Server. But it doesn't show how to make the login native.
If it's a highly trusted client, then you can use the OAuth2 resource owner password flow. You can look at the VS2013 SPA template and/or read on this post:
http://leastprivilege.com/2013/11/13/embedding-a-simple-usernamepassword-authorization-server-in-web-api-v2/
You could use Thinktecture.IdentityServer v2 as a light-weight security token service.
https://github.com/thinktecture/Thinktecture.IdentityServer.v2
You will need to create a WOPI host, which is basically a software solution that can take advantage of the browser-based Office(office web).
Create a custom WOPI host and configure it to use Office Web Apps Server to provide the browser-based file viewing and editing for Office files.
Nice sample on Microsoft MSDN
I'm making an application (web based) using flex and i have a requirment to access the SQLite database on the local system. There is no server running and i've decided to give them the link to the html file and see how that works out.
So in the root directory, there will be all required swf, html files, etc and a .db file. Can i access that database thro the flex web application ?
Please help.
No. Flex can access an SQLite database via the Air SDK, but you are out of luck when running from the browser sandbox/SDK.
If you don't like to use AIR SDK, You can do that by Java applet. You can make a collection of needed JavaScript functions on the web page to be called by Flex and their will call a Java applets functions to deal with SQLite instead of using HTTP services.
We want to offer some file storage capability in our asp.net 3.5 web app and would like users to create web folders by mapping to a particular URL [hosted on our IIS]. this will allow users to simply copy files from their systems to the mapped web folder and save them the task of uploading files, etc. Any ideas on how we can implement a webshare capability on webserver would be really appreciated.
What about FTP (FTPS)? In FTP Publishing service (ISS7 Extension) you can write your own authentication provider based on .NET Membership, or you can use same provider, which you are using in you web application. You can also extend the built-in functionality of this sevice to customize it's functions.
If you want to make an user interface in asp.net site, you can use System.IO classes to manage files.