×
Namespaces

Variants
Actions
(Difference between revisions)

SkyDrive - How to upload content on Windows Phone

From Nokia Developer Wiki
Jump to: navigation, search
galazzo (Talk | contribs)
m (Galazzo -)
galazzo (Talk | contribs)
m (Galazzo -)
Line 39: Line 39:
 
[[File:SkyDrive-step-000.png]]<br />
 
[[File:SkyDrive-step-000.png]]<br />
 
Choose last OS version<br />
 
Choose last OS version<br />
[[File:SkyDrive-step-001.png]]
+
[[File:SkyDrive-step-001.png]]<br />
 
Bring up the Add Reference dialog and go to the .Net tab. Scroll down to find the Microsoft.Live and Microsoft.Live.Controls assemblies. Add them to your project.<br />
 
Bring up the Add Reference dialog and go to the .Net tab. Scroll down to find the Microsoft.Live and Microsoft.Live.Controls assemblies. Add them to your project.<br />
[[File:SkyDrive-step-002.png]]
+
[[File:SkyDrive-step-002.png]]<br />
 
Open MainPage.xaml in the designer. Bring the Toolbox in view and right-click to select Choose Items… Under Windows Phone Components tab, find the SignInButton control in the Microsoft.Live.Control namespace and add to your toolbox (You only need to do this once).<br />
 
Open MainPage.xaml in the designer. Bring the Toolbox in view and right-click to select Choose Items… Under Windows Phone Components tab, find the SignInButton control in the Microsoft.Live.Control namespace and add to your toolbox (You only need to do this once).<br />
[[File:SkyDrive-step-003.png]]
+
[[File:SkyDrive-step-003.png]]<br />
 +
If everything is well installed you should see the SignInButton control in your toolbox. Drag it onto your designer surface. In your xaml file,<br />
 +
[[File:SkyDrive-step-004.png]]<br />
 +
 
 +
=== Scopes and permissions ===
 +
Before your app makes requests of the Live Connect APIs to work with Live Connect info, in most cases you must get permission from the user to access that info or to create new objects on behalf of the user. In the Live Connect APIs, this permission is called a scope. Each scope grants a different permission level.<br />
 +
There are three types of scopes:
 +
 
 +
* Core scopes are central to the Live Connect APIs and involve users' core profile and contact data.
 +
* Extended scopes allow you to work with users' extended profile and contact data.
 +
* Developer scopes allow you to work with developers' client IDs.
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Testo del titolo !! Testo del titolo
 +
|-
 +
| Testo della cella || Testo della cella
 +
|-
 +
| Testo della cella || Testo della cella
 +
|-
 +
| Testo della cella || Testo della cella
 +
|}

Revision as of 11:40, 6 September 2012

WP Metro Icon File.png
WP Metro Icon Web.png
SignpostIcon XAML 40.png
WP Metro Icon WP8.png
SignpostIcon WP7 70px.png
Article Metadata
Tested with
Devices(s): Nokia Lumia 800
Compatibility
Platform(s): Windows Phone
Windows Phone 8
Windows Phone 7.5
Article
Keywords: SkyDrive
Created: galazzo (06 Sep 2012)
Last edited: galazzo (06 Sep 2012)

Skydrive-logo-200.png is a Microsoft service that allow you to store files into a cloud in order to be automatically available from your phone and computers. You can share large files and photos or documents with your friends or collegues. Although the service is available for many platforms such as Windows, Mac, iOS, Android all you need to access to your content is a web browser.
This article is focused on the most interesting feature, the mobile access.

Live Connect

Live Connect provides developers a set of controls and APIs that enable applications to integrate sign in with the user’s Microsoft account and enable users to access information from SkyDrive, Hotmail, and Messenger. At time of writing these APIs are not included by default on Windows Phone SDK.

Before start developing

Using SkyDrive APIs

Create a new HelloWorldPhone Windows Phone application in Microsoft Visual Studio 2010 Express for Windows Phone using the Visual C# -> Silverlight for Windows Phone -> Windows Phone Application project template and name it SkyDrive SkyDrive-step-000.png
Choose last OS version
SkyDrive-step-001.png
Bring up the Add Reference dialog and go to the .Net tab. Scroll down to find the Microsoft.Live and Microsoft.Live.Controls assemblies. Add them to your project.
SkyDrive-step-002.png
Open MainPage.xaml in the designer. Bring the Toolbox in view and right-click to select Choose Items… Under Windows Phone Components tab, find the SignInButton control in the Microsoft.Live.Control namespace and add to your toolbox (You only need to do this once).
SkyDrive-step-003.png
If everything is well installed you should see the SignInButton control in your toolbox. Drag it onto your designer surface. In your xaml file,
SkyDrive-step-004.png

Scopes and permissions

Before your app makes requests of the Live Connect APIs to work with Live Connect info, in most cases you must get permission from the user to access that info or to create new objects on behalf of the user. In the Live Connect APIs, this permission is called a scope. Each scope grants a different permission level.
There are three types of scopes:

  • Core scopes are central to the Live Connect APIs and involve users' core profile and contact data.
  • Extended scopes allow you to work with users' extended profile and contact data.
  • Developer scopes allow you to work with developers' client IDs.
Testo del titolo Testo del titolo
Testo della cella Testo della cella
Testo della cella Testo della cella
Testo della cella Testo della cella
974 page views in the last 30 days.
×