C CurtisC Member Licensed User Longtime User Jun 1, 2015 #1 I am trying to understand why the following code is not working. Can anyone Help? Sub GetSessionTicket Dim Job1, Job2 As HttpJob Dim SI As Map Job1.Initialize("Job1", Me) SI.Initialize Si.Put("TitleID": "8C36") SI.Put("username": "CC") SI.Put("password:, "CC55" Job1.PostString("https://www.8C36.DomainName.com/Client/LoginWithDomainName", SI,Null) Log("SessionTicket=" & SessionTicket, "Success"=, & success.ticket) If TicketSucccess = True Then SelectTicket.SessionTicket Log(Ticket.Get.String) Else Log("Error:" &Ticket.ErrorMessage) ToastMessageShow("Error: &Ticket.ErrorMessage, True) End If Ticket.Release End Sub
I am trying to understand why the following code is not working. Can anyone Help? Sub GetSessionTicket Dim Job1, Job2 As HttpJob Dim SI As Map Job1.Initialize("Job1", Me) SI.Initialize Si.Put("TitleID": "8C36") SI.Put("username": "CC") SI.Put("password:, "CC55" Job1.PostString("https://www.8C36.DomainName.com/Client/LoginWithDomainName", SI,Null) Log("SessionTicket=" & SessionTicket, "Success"=, & success.ticket) If TicketSucccess = True Then SelectTicket.SessionTicket Log(Ticket.Get.String) Else Log("Error:" &Ticket.ErrorMessage) ToastMessageShow("Error: &Ticket.ErrorMessage, True) End If Ticket.Release End Sub
Peter Simpson Expert Licensed User Longtime User Jun 1, 2015 #2 SI should be a string, you have it as a Map. How exactly does the URL expect to receive the Username, Password and TitleId? Please supply an example for the URL format. Last edited: Jun 1, 2015 Upvote 0
SI should be a string, you have it as a Map. How exactly does the URL expect to receive the Username, Password and TitleId? Please supply an example for the URL format.