Exemple #1
0
 public static Uri GetAuthUri(String appId, VKAuthScope[] scope, VKAuthDisplay display)
 {
     return new Uri(GetAuthString(appId, scope, display), UriKind.Absolute);
 }
Exemple #2
0
 public static String GetAuthString(String appId, VKAuthScope[] scope, VKAuthDisplay display)
 {
     return String.Format(@"http://oauth.vkontakte.ru/authorize?client_id={0}&scope={1}&display=popup&response_type=token", appId, String.Join(",", scope.Select(s => s.GetOverridenString())));
 }