This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const string ConsumerKey = ""; | |
private const string ConsumerSecret = ""; | |
private const string Callback = ""; | |
private const string RequestTokenUrl = "https://secure.flickr.com/services/oauth/request_token"; | |
private const string AuthorizeUrl = "https://secure.flickr.com/services/oauth/authorize"; | |
private const string AccessTokenUrl = "http://www.flickr.com/services/oauth/access_token"; | |
private async void ButtonConnectOnClick(object sender, RoutedEventArgs e) | |
{ | |
string requestTokenParameters = "oauth_callback=" + Uri.EscapeDataString(Callback); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class LocationHelper { | |
public static async Task<Geoposition> GetCurrentPosition() { | |
Geolocator locator = new Geolocator(); | |
return await locator.GetGeopositionAsync(); | |
} | |
public static async Task SavePosition(StorageFile file, Geoposition position) { | |
DMS latDms = new DMS(position.Coordinate.Latitude, Coordenate.Latitude); | |
DMS lonDms = new DMS(position.Coordinate.Longitude, Coordenate.Longitude); |