' ...
Private job As HttpJob
job.Initialize("Perfil", Me)
' Starter.CadenaConexion = http://api.somostally.com/api/
'IdUsuario = 99
job.PostString(Starter.CadenaConexion & "candidates/" & IdUsuario, js)
job.GetRequest.SetContentType("application/json; charset=UTF-8")
job.GetRequest.SetHeader("Content-Type", Content_Type)
job.GetRequest.SetHeader("X-Requested-With", X_Request)
job.GetRequest.SetHeader("Authorization", Authorization)
Try
LogColor($"Inicio Guardar perfil candidato. Tiempo = $time{DateTime.Now}"$, Colors.Red)
Wait For (job) jobdone (job As HttpJob)
LogColor($"Fin Guardar perfil candidato. Tiempo = $time{DateTime.Now}"$, Colors.Red)
If job.Success Then
Return True
Else
Private Error As String = job.ErrorMessage
MiErrorPerfil = Error
Return False
End If
Catch
'Devolvemos el texto del error que nos indica
Private Error As String = LastException.Message
MiErrorPerfil = Error
Return False
Log(LastException)
End Try