1. Jorge Humberto Peralta Molina
  2. PowerBuilder
  3. Thursday, 7 November 2024 21:47 PM UTC

HOLA!!!

 

ALGUIEN PUEDE AYUDARME A MIGRAR EL SIGUIENTE CODIGO C# A CODIGO POWER SCRIPT DE POWERBUILDER 2022:

var options = new RestClientOptions("https://login.microsoftonline.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/7be34711-5ad2-4d22-9369-ddac0b818209/oauth2/v2.0/token", Method.Post);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "fpc=AgbDVJNJOWtLtWVxtlaYm05vsdBdAQAAAFEov94OAAAAarHS_AEAAAACKb_eDgAAANZWhR8BAAAACSm_3g4AAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd");
request.AddParameter("client_id", "da3f525e-9eeb-4fda-b7d7-4bcba6c1127a");
request.AddParameter("client_secret", "sDx8Q~UhXl8ZS1Aw24n~AC--IYeN8MejYoiJBcq-");
request.AddParameter("grant_type", "client_credentials");
request.AddParameter("scope", "https://b2c.prosegur.dev/bc225763-135f-4639-a89a-c448bdf64a68/.default");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
 
 
GRACIAS
 


There are no replies made for this question yet.
However, you are not allowed to reply to this question.