askwrite Posted July 8, 2015 Report Share Posted July 8, 2015 (edited) Salut,La cererea lui @sandabot de aici: https://rstforums.com/forum/103516-imgur-upload-api.rst , am facut acest script care uploadeaza imaginile in contul tau de imgur.Ce trebuie sa faceti:Va faceti cont pe imgur, va logati si apoi va duceti aici: https://api.imgur.com/oauth2/addclientFaceti request api pentru OAuth 2 authorization without a callback URLScript: <?php error_reporting(0); $user = ""; $pass = ""; $client_id = ""; $client_ - Pastebin.comModificati-va usernameul, parola, client_id, client_secret cu ale voastre si imaginea pe care doriti s-o uploadati,Scriptul este pentru CLI, nu l-am testat pe web, se poate sa mearga. Edited July 8, 2015 by askwrite Quote Link to comment Share on other sites More sharing options...
Wav3 Posted July 8, 2015 Report Share Posted July 8, 2015 Nu stiu daca functioneaza, insa cred ca ai fi putut pune toate apelarile alea de curl intr-o singura functie ca parca prea se repeta. Quote Link to comment Share on other sites More sharing options...
sandabot Posted July 8, 2015 Report Share Posted July 8, 2015 Salut !Mersi pentru timp si pentru ajutor, l-am testat pe localhost insa de fiecare data primesc login failed, testat cu 2 conturi. Quote Link to comment Share on other sites More sharing options...
askwrite Posted July 8, 2015 Author Report Share Posted July 8, 2015 @sandabot, mie imi merge perfect, nu inteleg de ce Quote Link to comment Share on other sites More sharing options...
askwrite Posted July 8, 2015 Author Report Share Posted July 8, 2015 Am facut un mic update sa nu mai trebuiasca sa dati voi allow. Quote Link to comment Share on other sites More sharing options...