... ao chat GPT
Interessando que para o token me passou e funcionou assim
O corpo entra assim
cBody := "client_id=" + cClientId + ;
"&client_secret=" + cClientSecret + ;
"&scope=dclogg-internal" + ;
"&grant_type=client_credentials"
oHttp := CreateObject("WinHttp.WinHttpRequest.5.1")
oHttp ...
Pesquisa resultou em 46 ocorrências: +secret
Termo pesquisado: +secret
- 02 Abr 2026 18:34
- Fórum: [x]Harbour
- Tópico: Uso de API autenticacao de token
- Respostas: 16
- Exibições: 659
- 26 Mar 2026 10:58
- Fórum: [x]Harbour
- Tópico: Uso de API autenticacao de token
- Respostas: 16
- Exibições: 659
Re: Uso de API autenticacao de token
Com certeza alterei.
O que era hash array/json virou string
oData := "?client_id=b11817f1-36c5-4119-b0a8-d95e8c960e1b"
oData += "&client_secret=f3b469c2-88a0-4eca-9116-fdc92d936e17"
oData += "&scope=dclogg-internal"
oData += "&grant_type=client_credentials"
Foi acrescentado no endereço, sem ...
O que era hash array/json virou string
oData := "?client_id=b11817f1-36c5-4119-b0a8-d95e8c960e1b"
oData += "&client_secret=f3b469c2-88a0-4eca-9116-fdc92d936e17"
oData += "&scope=dclogg-internal"
oData += "&grant_type=client_credentials"
Foi acrescentado no endereço, sem ...
- 26 Mar 2026 09:46
- Fórum: [x]Harbour
- Tópico: Uso de API autenticacao de token
- Respostas: 16
- Exibições: 659
Re: Uso de API autenticacao de token
... apigateway.digitalcomm.com.br:8443/auth/oauth/v2/token'
CLS
oData := "?client_id=b11817f1-36c5-4119-b0a8-d95e8c960e1b"
oData += "&client_secret=f3b469c2-88a0-4eca-9116-fdc92d936e17"
oData += "&scope=dclogg-internal"
oData += "&grant_type=client_credentials"
cResposta:=mandaserv('POST ...
CLS
oData := "?client_id=b11817f1-36c5-4119-b0a8-d95e8c960e1b"
oData += "&client_secret=f3b469c2-88a0-4eca-9116-fdc92d936e17"
oData += "&scope=dclogg-internal"
oData += "&grant_type=client_credentials"
cResposta:=mandaserv('POST ...
- 25 Mar 2026 09:36
- Fórum: [x]Harbour
- Tópico: Uso de API autenticacao de token
- Respostas: 16
- Exibições: 659
Re: Uso de API autenticacao de token
... header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=b11817f1-36c5-4119-b0a8-d95e8c960e1b' \
--data-urlencode 'client_secret=f3b469c2-88a0-4eca-9116-fdc92d936e17' \
--data-urlencode 'scope=dclogg-internal' \
--data-urlencode 'grant_type=client_credentials'
--data-urlencode 'client_id=b11817f1-36c5-4119-b0a8-d95e8c960e1b' \
--data-urlencode 'client_secret=f3b469c2-88a0-4eca-9116-fdc92d936e17' \
--data-urlencode 'scope=dclogg-internal' \
--data-urlencode 'grant_type=client_credentials'
- 25 Mar 2026 02:07
- Fórum: [x]Harbour
- Tópico: Uso de API autenticacao de token
- Respostas: 16
- Exibições: 659
Re: Uso de API autenticacao de token
... fazer:
oWeb :SetRequestHeader( "Content-Type", "application/json")
oWeb :Send( hb_JsonEncode( oData ) )
Você expôs suas client_id e client_secret e este vazamento permite a qualquer um disparar comandos para API e travar o seu acesso.
Nunca divulgue estes valores desta forma. Troque-os ...
oWeb :SetRequestHeader( "Content-Type", "application/json")
oWeb :Send( hb_JsonEncode( oData ) )
Você expôs suas client_id e client_secret e este vazamento permite a qualquer um disparar comandos para API e travar o seu acesso.
Nunca divulgue estes valores desta forma. Troque-os ...
- 24 Mar 2026 13:22
- Fórum: [x]Harbour
- Tópico: Uso de API autenticacao de token
- Respostas: 16
- Exibições: 659
Uso de API autenticacao de token
... https://apigateway.digitalcomm.com.br:8443/auth/oauth/v2/token'
cls
oData["client_id"]:="b11817f1-36c5-4119-b0a8-d95e8c960e1b"
oData["client_secret"]:="f3b469c2-88a0-4eca-9116-fdc92d936e17"
oData["scope"]:="dclogg-internal"
oData["grant_type"]:="client_credentials"
cResposta:=mandaserv('POST ...
cls
oData["client_id"]:="b11817f1-36c5-4119-b0a8-d95e8c960e1b"
oData["client_secret"]:="f3b469c2-88a0-4eca-9116-fdc92d936e17"
oData["scope"]:="dclogg-internal"
oData["grant_type"]:="client_credentials"
cResposta:=mandaserv('POST ...
- 18 Jun 2025 15:44
- Fórum: [x]Harbour
- Tópico: Pix Gerar QRCode
- Respostas: 8
- Exibições: 7878
Pix Gerar QRCode
... cSQL+="flag.PIX_RECEBEDOR, "
cSQL+="flag.PIX_CIDADE, "
cSQL+="flag.PIX_CERTIFICADO, "
cSQL+="flag.PIX_CLIENT_ID, "
cSQL+="flag.PIX_CLIENT_SECRET, "
cSQL+="flag.NOMEUSUARIO "
cSQL+="FROM flag WHERE flag.FLAG_Id = 1 "
oSQL_FLAG := Connections():ExecuteSQL(::oServer, cSQL)
IF ! EMPTY(oSQL ...
cSQL+="flag.PIX_CIDADE, "
cSQL+="flag.PIX_CERTIFICADO, "
cSQL+="flag.PIX_CLIENT_ID, "
cSQL+="flag.PIX_CLIENT_SECRET, "
cSQL+="flag.NOMEUSUARIO "
cSQL+="FROM flag WHERE flag.FLAG_Id = 1 "
oSQL_FLAG := Connections():ExecuteSQL(::oServer, cSQL)
IF ! EMPTY(oSQL ...
- 24 Nov 2023 12:06
- Fórum: [x]Harbour
- Tópico: MSXML2.ServerXMLHTTP.6.0 pode ser instalado no Win7
- Respostas: 23
- Exibições: 8220
MSXML2.ServerXMLHTTP.6.0 pode ser instalado no Win7
... connection, response
local content_type := "application/x-www-form-urlencoded"
local client_id := empresa:nuvemfiscal_client_id
local client_secret := empresa:nuvemfiscal_client_secret
local scope := "cte mdfe cnpj empresa cep conta"
local hResp, objError, msgError, body
begin sequence ...
local content_type := "application/x-www-form-urlencoded"
local client_id := empresa:nuvemfiscal_client_id
local client_secret := empresa:nuvemfiscal_client_secret
local scope := "cte mdfe cnpj empresa cep conta"
local hResp, objError, msgError, body
begin sequence ...
- 17 Ago 2023 08:40
- Fórum: FiveWin
- Tópico: Gerar Qrcode com para Pagamento de PIX
- Respostas: 7
- Exibições: 6484
Gerar Qrcode com para Pagamento de PIX
... DE PIX GENERICO
*** como utilizar a class ***
oPIX := PIXClass( ):New( )
oPIX:Setup(sBanco, nEnviroment, sCertificado, sClient_Id, sClient_Secret, sPIX_Key, sPIX_Receive, sPIX_City, sPIX_Amount, sPIX_Description, sPIX_Identification, sPDF_Linha1, sPDF_linha2, stxid)
oPIX:Execute( )
if oPIX ...
*** como utilizar a class ***
oPIX := PIXClass( ):New( )
oPIX:Setup(sBanco, nEnviroment, sCertificado, sClient_Id, sClient_Secret, sPIX_Key, sPIX_Receive, sPIX_City, sPIX_Amount, sPIX_Description, sPIX_Identification, sPDF_Linha1, sPDF_linha2, stxid)
oPIX:Execute( )
if oPIX ...
- 09 Jun 2023 16:25
- Fórum: Ferramentas de Apoio
- Tópico: Usando ACBRLib com harbour
- Respostas: 9
- Exibições: 6509
Usando ACBRLib com harbour
... APP deles.
nao é cobrado nada pela abertura da conta
pela conta voce pode gerar:
KEY_CLIENT_ID ( para producao e para homologacao )
KEY_CLIENT_SECRET ( para producao e para homologacao )
MY_CERTIFICATE ( certificado digital )
INFORMAÇÕES SOBRE PIX DO ACBR
Com esse novo componente, todos agora ...
nao é cobrado nada pela abertura da conta
pela conta voce pode gerar:
KEY_CLIENT_ID ( para producao e para homologacao )
KEY_CLIENT_SECRET ( para producao e para homologacao )
MY_CERTIFICATE ( certificado digital )
INFORMAÇÕES SOBRE PIX DO ACBR
Com esse novo componente, todos agora ...
- 24 Ago 2022 11:50
- Fórum: [x]Harbour
- Tópico: Harbour 3.4 fork Viktor -> atualização hbcrypto
- Respostas: 0
- Exibições: 5448
Harbour 3.4 fork Viktor -> atualização hbcrypto
... ed25519.c
* contrib/hbcrypto/tests/ed25519.prg
! HB_ED25519_SIGN()/ed25519_sign(): fix vulnerability by deriving the
public key from the passed secret key instead of expecting a matching
pair by the caller. Both of these functions now ignore the passed
public key value. HB_ED25519_SIGN() can now ...
* contrib/hbcrypto/tests/ed25519.prg
! HB_ED25519_SIGN()/ed25519_sign(): fix vulnerability by deriving the
public key from the passed secret key instead of expecting a matching
pair by the caller. Both of these functions now ignore the passed
public key value. HB_ED25519_SIGN() can now ...
- 23 Mar 2022 11:01
- Fórum: [x]Harbour
- Tópico: Não retorna o token api nova ifood
- Respostas: 44
- Exibições: 14331
Não retorna o token api nova ifood
... catch
Alert("Erro na criacao do objeto MSXML2.XMLHTTP : " + Ole2TxtError())
end
cComando := '{ "client_id":' + '"' + <id_cliente> + '", "client_secret":"' + <secret_cliente> + '" }'
cHttp:Open( "POST", "https://service.sitemercado.com.br/api/v1/oauth/token", .F. )
cHttp:SetRequestHeader( "Accept ...
Alert("Erro na criacao do objeto MSXML2.XMLHTTP : " + Ole2TxtError())
end
cComando := '{ "client_id":' + '"' + <id_cliente> + '", "client_secret":"' + <secret_cliente> + '" }'
cHttp:Open( "POST", "https://service.sitemercado.com.br/api/v1/oauth/token", .F. )
cHttp:SetRequestHeader( "Accept ...
- 23 Mar 2022 10:08
- Fórum: [x]Harbour
- Tópico: Não retorna o token api nova ifood
- Respostas: 44
- Exibições: 14331
Não retorna o token api nova ifood
Olá amigos!
Estou com problema para resolver igual do ifood. Afinal de contas, alguém conseguiu resolver o problema usando Harbour (Estou usando IDE HMG 3.5).
https://integracao.assertivasolucoes.co ... oc/oauth2/
Tenho que enviar o ClientID e Secret para Gerar um TOKEN e validá-lo em seguida.
Obrigado
Estou com problema para resolver igual do ifood. Afinal de contas, alguém conseguiu resolver o problema usando Harbour (Estou usando IDE HMG 3.5).
https://integracao.assertivasolucoes.co ... oc/oauth2/
Tenho que enviar o ClientID e Secret para Gerar um TOKEN e validá-lo em seguida.
Obrigado
- 05 Jan 2022 09:39
- Fórum: [x]Harbour
- Tópico: DISP_E_MEMBERNOTFOUND (a saga...)
- Respostas: 4
- Exibições: 900
DISP_E_MEMBERNOTFOUND (a saga...)
... gzip, deflate, br" )
oServer:SetRequestHeader( "Connection", "keep-alive" )
cCredentials := "client_id=" + ::cClientID + ;
"&client_secret=" + ::cClientSecret + ;
"&grant_type=client_credentials" + ;
"&scope=partner_all"
TRY
oServer:Send(cCredentials)
oServer:WaitForResponse ...
oServer:SetRequestHeader( "Connection", "keep-alive" )
cCredentials := "client_id=" + ::cClientID + ;
"&client_secret=" + ::cClientSecret + ;
"&grant_type=client_credentials" + ;
"&scope=partner_all"
TRY
oServer:Send(cCredentials)
oServer:WaitForResponse ...
- 11 Nov 2021 19:46
- Fórum: Banco de Dados
- Tópico: Atualizações do LetoDbf via ramo do Aleksander Czajczynski
- Respostas: 7
- Exibições: 2487
Atualizações do LetoDbf via ramo do Aleksander Czajczynski
... Czajczynski (hb fki.pl)
* source/server/leto_2.c
! fix/sort of a workaround quality
In certain conditions set up with Leto_ToggleZip( 1, "secret" )
which was enabling encryption for LZ4 code path: server still
sent out unencrypted packet. Client totally expects encrypted
here on the other ...
* source/server/leto_2.c
! fix/sort of a workaround quality
In certain conditions set up with Leto_ToggleZip( 1, "secret" )
which was enabling encryption for LZ4 code path: server still
sent out unencrypted packet. Client totally expects encrypted
here on the other ...