// Compile from the command line: csc GetTokenExample.cs
using System;
using System.IO;
using System.Net;
using System.Xml;
public class GetTokenExample
{
private const String API_ENDPOINT = "http://api.approver.com/v1/";
// TODO: Change these constants to values that work for you.
private const String APP_KEY = "bwhjdwvzysulefguwmfqlditbfbkhe";
private const String TOKEN = "uhdikfyrmghwvsrxrwhe";
public static void Main()
{
XmlDocument xd = new XmlDocument();
xd.Load(API_ENDPOINT + "getToken.aspx?app_key=" + APP_KEY +
"&frob=ddlbdapqldb");
Console.WriteLine(xd.SelectSingleNode("/auth/token").InnerText);
}
}