WPF and Dropbox - c#

I've been looking for some information about the subject, the thing is I'm trying to open, read, write files in dropbox thru a WPF app. So far I found this video https://www.youtube.com/watch?v=fcT-Jt8rcdY and the problem is that it uses windows forms and also has to introduce username and password to login. I just want to use dropbox as a tool to save some files in the cloud without loging everytime the program want to acces to dropbox. Any ideas?

You can use DropBox Linker, a library for using DropBox in .NET WPF application.
http://dropboxlinker.codeplex.com

Related

Using the One note API to save data from a Winform applciation on a Microsoft account

I am writing a ToDo list Winform application and I would like to use the the One Note API in order to save the information about the tasks in the user Microsoft account.
So I browsed the One Note API documentation but after a few hours of research I did not manage to find a good entry point.
I understand that the first step for me would be to sign the user which is described on this page:
https://msdn.microsoft.com/en-us/library/hh826543.aspx
The thing is that the different ways of achieving that step don't seem suitable for a Winform client application, maybe I should use the rest API ?
I have been looking for a .NET code example but have yet to find any so I'm quite confused right now...
Thanks for any help !
You can use the OneNote API - signing in can be achieved by using a webcontrol and having the user follow the sign in flow there. Unfortunately we don't have any sample code for winforms, but the auth flow in our NodeJs sample for the OneNote API should be similar.
https://github.com/OneNoteDev/OneNoteAPISampleNodejs
You could also (assumming the user has OneNote installed) use the OneNote interop libraries to interact with OneNote and store/retrieve your data there.
How To Write To A OneNote 2013 Page Using C# and The OneNote Interop
You might also want to try developing a universal app instead of a windows forms application:
https://github.com/OneNoteDev/OneNoteAPISampleWinUniversal

Access the Facebook //connect.facebook.net/en_US/fbevents.js with C#

I am working on pulling news and events to display in my Universal Windows Platform Application (UWP) using C# and have the Facebook SDK installed. The company uses the script below to access the information and display it on their log in website.
!function(b,e,f,g,a,c,d){b.fbq||(a=b.fbq=function(){a.callMethod?a.callMethod.apply(a,arguments):a.queue.push(arguments)},b._fbq||(b._fbq=a),a.push=a,a.loaded=!0,a.version="2.0",a.queue=[],c=e.createElement(f),c.async=!0,c.src=g,d=e.getElementsByTagName(f)[0],d.parentNode.insertBefore(c,d))}(window,document,"script","//connect.facebook.net/en_US/fbevents.js");fbq("init","1446863745630648");fbq("track","PageView");
As you can see from the script they are using //connect.facebook.net/en_us/fbevents.js file to store the events. Is there a way I can access and read this file?
did you click my link above?? starting a url with // means that a page in http will prepend http, and a page in https will prepend https to it.. See stackoverflow.com/questions/11881054/… – mentat 3 hours ago

C#/.NET Desktop App Based on Instagram's API (For Offline Use & No Database Connectivity)

For my semester assignment, I want to make a simple C#/.NET windows desktop application that will call the Instagram API and use its Photo Effects/Filters.
But my professor has said that the app must be a standalone windows desktop app which means it should not have any internet or database connectivity.
For example: If a user selects an image/photo from his computer using the desktop application (that I want to develop), I want the application to show a bunch of instagram filters that can applied to that image (without internet or any database connection).
My basic question: Is it possible for me to develop such an app that uses the instagram API but does not need any internet or database connectivity? If it is possible, can you guys guide me? I have visited instagram.com/developer/authentication/ link but I am not sure what to do. And if it is not possible, is there any other way to make an app that applies some effects/filters to an image? Please help me out. Thanks.
EDIT: I am still a little confused though. When we use intagram on phone, we use internet only when we want to upload a photo. Filters are offline features. So is there any way I can get these features from the API? As my teacher said I 'can use API but not internet' I assumed APIs can work without the need of an internet connection.
To implement offline image processing, you would either need an assembly of the filters or the actual code. I don't think that Instagram provides such tools. But there are plenty of third party libraries out there for image processing, if that's what you are looking for. For instance the AForge image processing.

Download txt file anonymously from Google drive using C#.Net

I'm making a simple program with C#.Net that provides some clients with links which are continuously updated ,and I need to provide a simple text database for my app.
I need to use Google drive to make it easy to edit the database by some users.
So ,how can I download a text or doc file uploaded to Google drive and shared publicly ?
Use the following Google Drive SDK
https://developers.google.com/drive/examples/dotnet

What would be the logic behind a Dropbox Syncing Note Taking Application?

Can anyone please suggest some logic behind a an application that syncs notes with one's DropBox Account?
Consider me a newb.
I'm thinking it should somewhere be around these lines:
The app takes notes.
The user has to input in his dropbox credentials.
Everytime a new note is created, it MUST be synced to his dropbox account.
What would be the various APIs that are to be implemented?
You will need to start thinking about using Dropbox web service APIs to upload the notes to Dropbox.
Some resources to start with:
Dropbox Developer portal to learn about using Dropbox API
Sample implementation of API for .Net for use or study
Following steps above should get your started in the right direction... One suggestion on cloud storage based design... It's best to also have some kind of local storage on the mobile device to act as an offline buffer, just in case user writes a note when they have no internet access. Write the cloud upload/sync code to run in the background.
Have fun!

Categories

Resources