private void GetAccess() { PostSubmitter sendPost = new PostSubmitter(); sendPost.Url = string.Format("http://wawadmin.omegle.com/redir/hometest?track=mon-videoy-adcm-y"); sendPost.Type = PostSubmitter.PostTypeEnum.Get; var strStatus = sendPost.Post(); }
private void Listen() { PostSubmitter eventlisten = new PostSubmitter(); eventlisten.Url = String.Format("http://{0}.omegle.com/events", _Server); eventlisten.PostItems.Add("id", _Id); eventlisten.Type = PostSubmitter.PostTypeEnum.Post; eventlisten.WebExceptionEvent += WebException; Parse(eventlisten.Post()); }
public void StopTyping() { PostSubmitter sendPost = new PostSubmitter(); sendPost.Url = String.Format("http://{0}.omegle.com/stoppedtyping", _Server); sendPost.PostItems.Add("id", _Id); sendPost.Type = PostSubmitter.PostTypeEnum.Post; if (!_Throws) { sendPost.WebExceptionEvent += WebException; } }
private string SendDisconnect() { PostSubmitter sendPost = new PostSubmitter(); sendPost.Url = String.Format("http://{0}.omegle.com/disconnect", _Server); sendPost.PostItems.Add("id", _Id); sendPost.Type = PostSubmitter.PostTypeEnum.Post; if (!_Throws) { sendPost.WebExceptionEvent += WebException; } return(sendPost.Post()); }
public string SendMessageRaw(string message) { //Send Message format: [url]http://bajor.omegle.com/send?id=Id&msg=MSG[/url] PostSubmitter sendPost = new PostSubmitter(); sendPost.Url = String.Format("http://{0}.omegle.com/send", _Server); sendPost.PostItems.Add("id", _Id); sendPost.PostItems.Add("msg", message); sendPost.Type = PostSubmitter.PostTypeEnum.Post; if (!_Throws) { sendPost.WebExceptionEvent += WebException; } return(sendPost.Post()); }
private void GetServers() { PostSubmitter sendPost = new PostSubmitter(); sendPost.Url = string.Format("http://omegle.com/status"); sendPost.Type = PostSubmitter.PostTypeEnum.Get; var strStatus = sendPost.Post(); var dictStatus = JsonConvert.DeserializeObject <dynamic>(strStatus); var listServers = new List <string>(); var listAntiNudeServers = new List <string>(); foreach (string server in dictStatus.servers) { listServers.Add(server.Split('.')[0]); } foreach (string server in dictStatus.antinudeservers) { listAntiNudeServers.Add(server.Split('.')[0]); } serverList = listServers.ToArray <string>(); antiNudeServerList = listAntiNudeServers.ToArray <string>(); }
private void GetID() { PostSubmitter sendPost = new PostSubmitter(); sendPost.Url = String.Format("http://{0}.omegle.com/start?rcs=1&spid=bf069a88b6dedc0cb9207c2413c703d0c890f6b65cf282613b108efd2b9c9b58&randid=SVZ75ZSW&group=unmon&lang=en&camera=%20", _Server); sendPost.Type = PostSubmitter.PostTypeEnum.Post; if (Interests.Count > 0) { sendPost.Url += "&topics=" + GetTopicPostString(); } if (_Language != null) { sendPost.Url += "&lang=" + _Language; } if (!_Throws) { sendPost.WebExceptionEvent += WebException; } _Id = sendPost.Post(); _Id = _Id.TrimStart('"'); _Id = _Id.TrimEnd('"'); }
public WebExceptionEventArgs(WebException e, string url, string postData, PostSubmitter.PostTypeEnum method) { this.Exception = e; this.Url = url; this.PostData = postData; this.Method = method; }