LiveConnectClient.GetAsync(String) method
Gets the file at the specified path.
Syntax
Parameters
- path
-
Type: System.String
The relative path to the item to retrieve.
Return value
Type: Task<LiveOperationResult>
The data returned by the API service for the get operation.
Note
Doesn't return a value on the Windows Phone.
Remarks
This is a helper function that makes calls using HTTP GET to the Live SDK REST reference. It supports all paths in the REST API.
GetAsync automatically uses the access token returned from user sign-in by the constructor, making it possible for a site to omit working directly with access tokens. If the access token cookie is set, GetAsync uses that as well.
Important Before calling this method, your code must call either the LiveAuthClient.InitializeAsync or LiveAuthClient.LoginAsync method with, at minimum, the corresponding necessary scopes for [downloading | uploading | copying | deleting | reading | moving | creating | updating] the corresponding [data | files | file]. If you don’t, the call to this method may fail.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | None supported |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
Microsoft.Live |
|
Assembly |
|
See also