Exemplo n.º 1
0
        private void GetTicketClick(object sender, GestureEventArgs e)
        {
            var req = new GetTicketRequest();

            req.AccessToken = "148836425163954|2.AQBjXMWeRAVeZzDa.3600.1312884000.0-788734623|wWHWtt1v9G9baPvbnGIajRxLJF8";

            client.GetTicketAsync(req, (response) =>
            {
                Dispatcher.BeginInvoke(() => textBox1.SelectedText = response.Star.FirstName);
                ticket = response.Ticket.ticket;
            }
                );
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //var client = new MegaStarzClient("http://*****:*****@"C:\1020.log", FileMode.Open, FileAccess.Read);
                        }
                        catch (Exception e)
                        {
                            
                        }


                        client.UploadRecordingAsync(response.Ticket.ticket, 1, fs, (recResponse) =>
                                                                              {
                                                                                  Console.WriteLine(recResponse.playUrl);
                                                                              });




                });

//            client.GetSongsAsync((response) =>
//                                     {
//                                         foreach (var songResponse in response)
//                                         {
//                                             Console.WriteLine(string.Format("Song ({0}): \"{1}\", ({2}). Length {3}, PlayUrl: {4}", songResponse.id, songResponse.name, songResponse.artistName, songResponse.length, songResponse.playUrl));
//                                         }
//                                     });

            System.Threading.Thread.CurrentThread.Suspend();
        }