F
F
FrostMoon2012-03-16 13:15:16
PHP
FrostMoon, 2012-03-16 13:15:16

Different issuance on the site and through the API

Gentlemen, good day. I ran into a problem when the API and the Flickr.com web interface give different results.

Nobody faced such a problem?

Request piece:

$search  =  $flickr - > photos_search (  array (  'media'  =>  'photos'  ,  'text'  =>  $_POST [ 'tag' ] ,  'per_page'  =>  '500'  )  )  ;
$photos  =  array ( )  ;  
 
foreach  (  $search [ 'photo' ]  as $k => $v  ) {
$photos [ ]  =  array (
"t"  $flickr - > buildPhotoURL (  $v,  'thumbnail'  ) ,
"o"  =>  $flickr - > buildPhotoURL (  $v,  'medium'  )
) ;
}
 
foreach ( $photos as $ph ) {
echo  "<a href='" .$ph [ 'o' ] . "'><img src='" .$ph [ 't' ] . "'style='margin: 3px; display: inline-block;'/></a>" ;
}


If you run the code, for example, on the “Putin” tag, and go to Flickr , the results will be radically different.
Share your guesses, who is not difficult.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
skvot, 2012-03-16
@skvot

$flickr is the official wrapper for using the api? Haven't worked with flickr, but it seems to me quite possible to use different search algorithms for different entry points.
PS
I hope this is just an example and you keep html in templates and css in style files =)

F
FrostMoon, 2012-03-16
@FrostMoon

1) Yes, this is just an example :)
2) Yes, $flickr is from an off site - www.flickr.com/services/api/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question