Mogę prosić o Simple example kod w PHP? Autoryzacja musi być w auth 2.0.
Może być curl
Chodzi o pobranie danych z wfirma.pl
https://tutorialspage.com/simple-oauth2-example-using-php-curl/#google_vignette
doc.wfirma.pl
Mogę prosić o Simple example kod w PHP? Autoryzacja musi być w auth 2.0.
Może być curl
Chodzi o pobranie danych z wfirma.pl
https://tutorialspage.com/simple-oauth2-example-using-php-curl/#google_vignette
doc.wfirma.pl
Google "php oauth2 client".
@Riddle: no okej. Potrzebuję nazwy pola Lokalizacja w xml. JakaszmiennaodApi["nazwa lokalizacji*]
set CLIENT_ID=739ec9f47ce1a4eee5a74e167837a681
set CLIENT_SECRET=96903a687e600e81d71839062298e7e04
set SCOPE=invoices-read,invoices-write,contractors-read,contractors-write
set ENDPOINT=https://wfirma.pl/oauth/requestToken
set URL="%ENDPOINT%?consumer_key=%CLIENT_ID%&response_type=code&scope=%SCOPE%&access_type=offline&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
@REM start iexplore %URL%
@REM start microsoft-edge:%URL%
start chrome %URL%
set /p AUTH_CODE="Enter Code displayed in browser: "
curl ^
--data client_id=%CLIENT_ID% ^
--data client_secret=%CLIENT_SECRET% ^
--data code=%AUTH_CODE% ^
--data redirect_uri=urn:ietf:wg:oauth:2.0:oob ^
--data grant_type=authorization_code ^
https://wfirma.pl/oauth/requestToken
oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key%26oauth_signature%26oauth_signature_method%26oauth_nonce%26oauth_timestamp%26oauth_callback
na białej stronie tylko to jest zwracane
https://stackoverflow.com/questions/53357741/how-to-perform-oauth-2-0-using-the-curl-cli
nie dziala mi to
Masz:
set URL="%ENDPOINT%?consumer_key=%CLIENT_ID%&response_type=code&scope=%SCOPE%&access_type=offline&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
a błąd:
oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key%26oauth_signature%26oauth_signature_method%26oauth_nonce%26oauth_timestamp%26oauth_callback
Więc masz błąd parameter_absent
. Czyli brak Ci zestawu parametrów: oauth_consumer_key
, oauth_signature
, oauth_signature_method
, oauth_nonce
, oauth_timestamp, oauth_callback