Example #1
0
		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;
    }
Example #3
0
		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);
			}
		}
Example #4
0
		static void Main(string[] args)
		{
			var api = new Vzaar("username", "token");
			Console.WriteLine(api.whoAmI());
		}