Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delphi 7 - consultas ultilizando Https #137

Open
LeandroOLC opened this issue Apr 27, 2020 · 3 comments
Open

Delphi 7 - consultas ultilizando Https #137

LeandroOLC opened this issue Apr 27, 2020 · 3 comments

Comments

@LeandroOLC
Copy link

LeandroOLC commented Apr 27, 2020

Na versão do delphi 7 e possível fazer consultas ultilizando Https?

@jonathanbruno
Copy link

Na versão do delphi 7 e possível fazer consultas ultilizando Https?

tbm queria saber, ainda nao consegui

@pablogarayprosis
Copy link

Eu fiz assim:
res := RestClient1.Resource('https://meusite.com.br/api/v1/auth/session').Accept(RestUtils.MediaType_Json).ContentType(RestUtils.MediaType_Json).Post('{"email":"[email protected]","password":"minhasenha"}');

      obj := SO(res);
      dados := obj.AsObject.S['data'];

      objDados := SO(dados);
      token := objDados.AsObject.S['token'];

      user := objDados.AsObject.S['user'];
      objUser := SO(user);

para trabalhar com o Json, usei a lib superobjects link

@viniZip
Copy link

viniZip commented Nov 4, 2024

Eu fiz assim: res := RestClient1.Resource('https://meusite.com.br/api/v1/auth/session').Accept(RestUtils.MediaType_Json).ContentType(RestUtils.MediaType_Json).Post('{"email":"[email protected]","password":"minhasenha"}');

      obj := SO(res);
      dados := obj.AsObject.S['data'];

      objDados := SO(dados);
      token := objDados.AsObject.S['token'];

      user := objDados.AsObject.S['user'];
      objUser := SO(user);

para trabalhar com o Json, usei a lib superobjects link

Sabe como se faz para o método GET? Estava precisando

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants