static void Main(string[] args) { var api = new Vzaar("username", "token"); var details = api.getUserDetails("skitsanos"); Console.WriteLine("Videos owned: " + details.videoCount); Console.WriteLine("Storage used: " + String.Format(new FileSizeFormatProvider(), "File size: {0:fs}", details.videosTotalSize)); Console.WriteLine("Bandwidth this month: " + String.Format(new FileSizeFormatProvider(), "File size: {0:fs}", details.bandwidthThisMonth)); }
public TestSuite(string username, string token, string apiUrl, int videoId) { this.username = username; this.token = token; this.apiUrl = apiUrl; this.videoId = videoId; this.api = new Vzaar(this.username, this.token); this.api.apiUrl = apiUrl; }
static void Main(string[] args) { var api = new Vzaar("username", "token"); if (args.Length != 1) { Console.WriteLine("Invalid number of arguments. File path is required"); } else { var filePath = args[0]; var guid = api.uploadVideo(filePath); Console.WriteLine("-- Uploaded. vzaar GUID: " + guid); } }
static void Main(string[] args) { var api = new Vzaar("username", "token"); Console.WriteLine(api.whoAmI()); }