PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : (Sonstige) - Openload.co - Account/Info API



syrius
15.12.2017, 19:33
Hello,

ich verzweifle gerade an der API von Openload.co bei dem Versuch per cURL die Accountinfo abzurufen.

Ressourcen

https://openload.co/api#accountinfos

login="..."
apikey="..."

Aufruf

curl -sS ${proxy_detail} -A "${agent}" -L "https://api.openload.co/1/account/info?login={login}&key={apikey}"

curl -sS ${proxy_detail} -L "https://api.openload.co/1/account/info?login={login}&key={apikey}"

curl -sS -L "https://api.openload.co/1/account/info?login={login}&key={apikey}"

Result

{"status":403,"msg":"Authentication failed","result":null}

Info
Ich kann versichern, dass die Variablen $login und $apikey zu 100% korrekt gefüllt sind. Es ist ausgeschlossen, dass die API nicht funktioniert - anderweitig getestet. Außerdem funktioniert der Upload auf die "gleiche" Methode wie folgt:

curl -sS ${proxy_detail} -L "https://api.openload.co/1/file/ul?login=${ACCOUNT_USER}&key=${ACCOUNT_PASS}"

Any ideas?

syrius
15.12.2017, 19:50
Solved


curl -X GET "https://api.openload.co/1/account/info?login=$login&key=$apikey"

syrius
15.12.2017, 20:01
O M G

mit $ funktionierts deutlich besser ... ohne Worte

Das war wohl etwas zuviel Glühwein xD