Click here to Skip to main content
15,897,371 members
Articles / Programming Languages / C#

Unraveling the Netflix API - Part I - Netflix API Basics

Rate me:
Please Sign up or sign in to vote.
4.40/5 (8 votes)
9 Sep 2009CPOL15 min read 86.5K   1.3K   36  
How to use the Netflix APIs
namespace NetflixAPIBasics
{
	partial class frmMain
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.udMaxResults = new System.Windows.Forms.NumericUpDown();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.txtRequest = new System.Windows.Forms.TextBox();
			this.webResults = new System.Windows.Forms.WebBrowser();
			this.btnSearch = new System.Windows.Forms.Button();
			this.txtSearch = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.txtKey = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.txtSecret = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.udMaxResults)).BeginInit();
			this.SuspendLayout();
			// 
			// udMaxResults
			// 
			this.udMaxResults.Location = new System.Drawing.Point(412, 44);
			this.udMaxResults.Maximum = new decimal(new int[] {
            25,
            0,
            0,
            0});
			this.udMaxResults.Name = "udMaxResults";
			this.udMaxResults.Size = new System.Drawing.Size(48, 20);
			this.udMaxResults.TabIndex = 17;
			this.udMaxResults.Value = new decimal(new int[] {
            5,
            0,
            0,
            0});
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(343, 47);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(63, 13);
			this.label3.TabIndex = 16;
			this.label3.Text = "Max results:";
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(17, 80);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(50, 13);
			this.label2.TabIndex = 14;
			this.label2.Text = "Request:";
			// 
			// txtRequest
			// 
			this.txtRequest.Location = new System.Drawing.Point(73, 77);
			this.txtRequest.Multiline = true;
			this.txtRequest.Name = "txtRequest";
			this.txtRequest.ReadOnly = true;
			this.txtRequest.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtRequest.Size = new System.Drawing.Size(492, 56);
			this.txtRequest.TabIndex = 13;
			// 
			// webResults
			// 
			this.webResults.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.webResults.Location = new System.Drawing.Point(12, 148);
			this.webResults.MinimumSize = new System.Drawing.Size(20, 20);
			this.webResults.Name = "webResults";
			this.webResults.Size = new System.Drawing.Size(554, 248);
			this.webResults.TabIndex = 12;
			// 
			// btnSearch
			// 
			this.btnSearch.Location = new System.Drawing.Point(490, 42);
			this.btnSearch.Name = "btnSearch";
			this.btnSearch.Size = new System.Drawing.Size(75, 23);
			this.btnSearch.TabIndex = 11;
			this.btnSearch.Text = "Search";
			this.btnSearch.UseVisualStyleBackColor = true;
			this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
			// 
			// txtSearch
			// 
			this.txtSearch.Location = new System.Drawing.Point(73, 44);
			this.txtSearch.Name = "txtSearch";
			this.txtSearch.Size = new System.Drawing.Size(263, 20);
			this.txtSearch.TabIndex = 10;
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(8, 47);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(59, 13);
			this.label1.TabIndex = 9;
			this.label1.Text = "Search for:";
			// 
			// label4
			// 
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(39, 12);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(28, 13);
			this.label4.TabIndex = 18;
			this.label4.Text = "Key:";
			// 
			// txtKey
			// 
			this.txtKey.Location = new System.Drawing.Point(73, 9);
			this.txtKey.Name = "txtKey";
			this.txtKey.Size = new System.Drawing.Size(263, 20);
			this.txtKey.TabIndex = 19;
			// 
			// label5
			// 
			this.label5.AutoSize = true;
			this.label5.Location = new System.Drawing.Point(365, 12);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(41, 13);
			this.label5.TabIndex = 20;
			this.label5.Text = "Secret:";
			// 
			// txtSecret
			// 
			this.txtSecret.Location = new System.Drawing.Point(412, 9);
			this.txtSecret.Name = "txtSecret";
			this.txtSecret.Size = new System.Drawing.Size(119, 20);
			this.txtSecret.TabIndex = 21;
			// 
			// label6
			// 
			this.label6.AutoSize = true;
			this.label6.Location = new System.Drawing.Point(23, 127);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(45, 13);
			this.label6.TabIndex = 22;
			this.label6.Text = "Results:";
			// 
			// frmMain
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(575, 408);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.txtSecret);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.txtKey);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.udMaxResults);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.txtRequest);
			this.Controls.Add(this.webResults);
			this.Controls.Add(this.btnSearch);
			this.Controls.Add(this.txtSearch);
			this.Controls.Add(this.label1);
			this.Name = "frmMain";
			this.Text = "Netflix Search Demo";
			((System.ComponentModel.ISupportInitialize)(this.udMaxResults)).EndInit();
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.NumericUpDown udMaxResults;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox txtRequest;
		private System.Windows.Forms.WebBrowser webResults;
		private System.Windows.Forms.Button btnSearch;
		private System.Windows.Forms.TextBox txtSearch;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txtKey;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox txtSecret;
		private System.Windows.Forms.Label label6;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Dave Cook Consulting, LLC
United States United States
I am a programmer/writer, specializing in developing SDKs, and work for a rather well known software company in Redmond, WA. More information than you could possibly be interested in knowing can be found at NetDave.com.

I'm also a ham radio aficionado, holding the callsign WAØTTN.

Comments and Discussions