public me2dayLoginForm(Form1 frm) { InitializeComponent(); this.parentForm = frm; api = new Me2API(); api.AppKey = "296a4e7d66d3b4f6f786af9b5517a048"; me2dayAuth(); }
public Form1() { InitializeComponent(); tbRecentDate.Text = fromdate.ToString("yyyy-MM-dd"); api = new Me2API(); api.AppKey = "296a4e7d66d3b4f6f786af9b5517a048"; #if DEBUG btnDebug.Visible = false; #endif }
static void Main(string[] args) { try { Console.WriteLine("Me2DAY 아이디를 입력하세요"); string id = Console.ReadLine().Trim(); Console.WriteLine("Me2DAY API 키를 입력하세요"); string api_key = Console.ReadLine().Trim(); api = new Me2API(); api.UserID = id; api.AppKey = "828e442ceea1ecdbc7db09d644ae69e9"; api.ApiKey = api_key; while (true) { usage(); int cmd = Convert.ToInt32(Console.ReadLine().Trim()); if (cmd == 1) getLatests(); else if (cmd == 2) writePost(); else if (cmd == 3) getFriends(); else break; } } catch (Me2Exception e) { Console.WriteLine("에러가 발생했습니다:: " + e.Error.Code); Console.WriteLine(e.Error.Message); Console.WriteLine(e.Error.Description); } catch (Exception e) { throw e; } }