dopiaza / dpzflickr Goto Github PK
View Code? Open in Web Editor NEWPHP API Kit for Flickr with support for OAuth
License: Other
PHP API Kit for Flickr with support for OAuth
License: Other
Inside __construct there should be a check to see if there is already a started session when using this code in a more complex application (e.g. Zend Framework) or else PHP will throw a notice.
session_start();
should be:
if (session_id() == '') {
session_start();
}
Hi,
I have successfully used your example page to upload a photograph, but when I follow the link to auth.php I just get Error: on the page. I am a a newb so am a bit stranded.
Thanks
Greg
Flickr will deprecate the non-SSL access on June 27th.
Could it be possible to update the URLs with the SSL ones?
http://code.flickr.net/2014/04/30/flickr-api-going-ssl-only-on-june-27th-2014/
Thanks.
I have an issue because I need the url of the photo I just uploaded with the script. But I just get part of it. I get the first part of numbers which compounds the name in server, something like this: 232352452452_2352352352_m.jpeg
The part of _m.jpeg is always the same and the first bunch of numbers, you receive in [_content] in json received.
But the second part is not received so I cannot show the complete url. Is there a way to receive it too?
Also, there is an error in upload script. Line 63, it should be $photos = @$response['_content']; to get something. With [photos] and without @, it gives an error and doesn't read anything.
Thanks for help and for doing this script.
When trying to upload a photo, the response I get is this:
Array ( [stat] => fail [err] => Array ( ) )
How can I make the upload work?
Hi there, I love this project. Very well done. Can you tell me how I would go about downloading all of my photos, or even getting a list of all of my photos? That would be really helpful. Thank you.
Hi, I recently started using this code for a project I've been trying to finish ... but, when I check for browser compatibility it requires me to authorize my application again (though I haven't checked, it will most likely do the same for each computer that tries to use the app). This will not work!
I'm not sure why this is happening (or if it is programmed to do this; in which case, how do I change the code so that I only have to authorize once ... and only once).
Any help would be great!
Hi @dopiaza ,
I have used the same code for upload and flickr. but the error pops up saying oauth_problem=signature_invalid. My base string and string returned are also same. Here is the response returned when upload.php is executed.
&debug_sbs=POST&https%3A%2F%2Fup.flickr.com%2Fservices%2Fupload%2F&oauth_consumer_key%3Db81ffb68a59859ff286ccae322ca1e75%26oauth_nonce%3Dc01e3dd11c8cc7a114bce7a9e16deba4%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1483338927%26oauth_token%3D72157678382075066-dde078f3080c848c%26oauth_version%3D1.0%26photo%3D%2540%252Ftmp%252Fphp6A8M5M%26tags%3DDPZFlickr%26title%3Dtatoo.
Any help is appreciated.
@dopiaza, made the implementation of the existosamente library, my only is incomveniente that whenever income, I must perform authentication, the library does not detect that there is already a oauth_token and oauth_verifier, and creates a new request for oauth_token, that I could not fix it, I would know if I'm doing something wrong or the library simply works.
Thank you.
You use namespaces, which require PHP >= 5.3.0. Your readme specifies 5.1.2 as the minimum PHP version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.