Canasia Sports

 
  • Narrow screen resolution
  • Wide screen resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • dark color
  • red color
Forums
Welcome, Guest
Please Login or Register.    Lost Password?
passing a query string in an include +php get_media_data doesn't work (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: passing a query string in an include +php get_media_data doesn't work
#8664
Moobys (Visitor)
Click here to see the profile of this user
Birthdate:
passing a query string in an include +php get_media_data doesn't work  
Hello, _script_ Get_media_data has returned error number 623 since yesterday. This _script_ error isn't described even in documentation. We cannot display the details of any photo. Thanks Moo
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8665
Olivier Sirven (Visitor)
Click here to see the profile of this user
Birthdate:
passing a query string in an include +php get_media_data doesn't work  
Hello, _script_ Get_media_data has returned error number 623 since yesterday. This _script_ error isn't described even in documentation. We cannot display the details of any photo. Thanks Moo
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8666
Moobys (Visitor)
Click here to see the profile of this user
Birthdate:
passing a query string in an include +php get_media_data doesn't work  
Can you tell me more about this? Which API call specifically? Moobys wrote: Hello, _script_ Get_media_data has returned error number 623 since yesterday. This _script_ error isn't described even in documentation. We cannot display the details of any photo. Thanks Moo
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8667
Moobys (Visitor)
Click here to see the profile of this user
Birthdate:
passing a query string in an include +php get_media_data doesn't work  
checked it. POST /_xml_rpc/rpc HTTP/1.0 Host: fr.fotolia.com Connection: close Content-Type: text/_xml_ Content-Length: 947 <?_xml_ version= 1.0 encoding= utf-8 ? <methodCall         <methodName_xml_rpc.getMediaData</methodName         <params                 <param                         <value                                 <struct                                         <member                                                 <nameapi_key</name                                                 <value                                                         <stringour api key</string                                                 </value                                         </member                                 </struct                         </value                 </param                 <param                         <value                                 <struct                                         <member                                                 <nameid</name                                                 <value                                                         <string180699</string                                                 </value                                         </member                                 </struct                         </value                 </param                 <param                         <value                                 <struct                                         <member                                                 <namethumbnail_size</name                                                 <value                                                         <int110</int                                                 </value                                         </member                                 </struct                         </value                 </param                 <param                         <value                                 <struct                                         <member                                                 <namelanguage_id</name                                                 <value                                                         <int2</int                                                 </value                                         </member                                 </struct                         </value                 </param         </params </methodCall Received the following response: HTTP/1.1 200 OK Date: Thu, 08 May 2008 11:52:28 GMT Server: Apache X-Powered-By: PHP/5.2.5 Set-Cookie: PHPSESSID=deleted; expires=Wed, 09-May-2007 11:52:27 GMT; path=/; domain=download.fotolia.com Set-Cookie: PHPSESSID=416e2241527955e00c857076065f0be3; path=/; domain=.fotolia.com Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache Content-Length: 307 Connection: close Content-Type: text/_xml_ <?_xml_ version= 1.0 encoding= ISO-8859-1 ? <methodResponse<fault<value<struct<member<namefaultCode</ name<value<int623</int</value</member<member<namefaultString</ name<value<stringCalling parameters do not match signature</ string</value</member</struct</value</fault</methodResponse On 8 Kvě, 12:59, Olivier Sirven < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it wrote: Hi, Can you tell me more about this? Which API call specifically? Moobys wrote: Hello, _script_ Get_media_data has returned error number 623 since yesterday. This _script_ error isn't described even in documentation. We cannot display the details of any photo. Thanks Moo
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8668
passing a query string in an include +php get_media_data doesn't work  
checked it. POST /_xml_rpc/rpc HTTP/1.0 Host: fr.fotolia.com Connection: close Content-Type: text/_xml_ Content-Length: 947 <?_xml_ version= 1.0 encoding= utf-8 ? <methodCall         <methodName_xml_rpc.getMediaData</methodName         <params                 <param                         <value                                 <struct                                         <member                                                 <nameapi_key</name                                                 <value                                                         <stringour api key</string                                                 </value                                         </member                                 </struct                         </value                 </param                 <param                         <value                                 <struct                                         <member                                                 <nameid</name                                                 <value                                                         <string180699</string                                                 </value                                         </member                                 </struct                         </value                 </param                 <param                         <value                                 <struct                                         <member                                                 <namethumbnail_size</name                                                 <value                                                         <int110</int                                                 </value                                         </member                                 </struct                         </value                 </param                 <param                         <value                                 <struct                                         <member                                                 <namelanguage_id</name                                                 <value                                                         <int2</int                                                 </value                                         </member                                 </struct                         </value                 </param         </params </methodCall Received the following response: HTTP/1.1 200 OK Date: Thu, 08 May 2008 11:52:28 GMT Server: Apache X-Powered-By: PHP/5.2.5 Set-Cookie: PHPSESSID=deleted; expires=Wed, 09-May-2007 11:52:27 GMT; path=/; domain=download.fotolia.com Set-Cookie: PHPSESSID=416e2241527955e00c857076065f0be3; path=/; domain=.fotolia.com Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache Content-Length: 307 Connection: close Content-Type: text/_xml_ <?_xml_ version= 1.0 encoding= ISO-8859-1 ? <methodResponse<fault<value<struct<member<namefaultCode</ name<value<int623</int</value</member<member<namefaultString</ name<value<stringCalling parameters do not match signature</ string</value</member</struct</value</fault</methodResponse On 8 Kvě, 12:59, Olivier Sirven < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it wrote: Hi, Can you tell me more about this? Which API call specifically? Moobys wrote: Hello, _script_ Get_media_data has returned error number 623 since yesterday. This _script_ error isn't described even in documentation. We cannot display the details of any photo. Thanks Moo
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8669
Olivier Sirven (Visitor)
Click here to see the profile of this user
Birthdate:
passing a query string in an include +php get_media_data doesn't work  
Hi Moobys we had a similar issue yesterday it seems that there was a change at fotolia in _xml_ rpc library and now strict typing is enforced                <param                          <value                                  <struct                                          <member                                                  <nameid</name                                                  <value <string180699</string                                                  </value                                          </member                                  </struct                          </value                  </param should be                <param                          <value                                  <struct                                          <member                                                  <nameid</name                                                  <value                                                          <int180699</ int                                                  </value                                          </member                                  </struct                          </value                  </param

[

fotolia_api_client.php ]
parameters set in the page like getSearchResults with serie_id set.
var $forced_params;
function fotoliaApiClient($api_key, $url, $path)
{
$this-api_key = $api_key;
$this-url = $url;
$this-path = $path;
$this-search_params = array(
'keywords',
'words',
'language_id',
'color_name',
'creator_id',
'k',
'serie_id',
'model_id',
'similar_id',
'cat1_id',
'cat2_id',
'gallery_id',
'category_ids',
'isolated',
'lightbox_id32',
'filters',
'country_id',
'forward_to',
'content_ids',
'offset',
'order',
'thumbnail_size',
'limit',
'similia_id',
'media_id',
'detail_level',
'action',
);
$this-type_of_stats = array(
'member_viewed_photos',
'member_downloaded_photos',
'member_bought_photos',
'member_earned_credits',
);
$this-displayed_period = array(
'day',
'week',
'month',
'quarter',
'year',
);
$this-easy_date_periods = array(
'all',
'today',
'yesterday',
'one_day',
'two_days',
'three_days',
'one_week',
'one_month',
);
}
/*
* Prepare the _xml_ rpc request and send to the servers
*
* @param string $method the method name
* @param array $params the parameters to send in the _xml_rpc request
* @param optional string $session_id valid php session id returned by _xml_rpc.loginUser method
* @return $result
*
*/
function request($method, $params, $session_id='')
{
//if ( is_array($params) && count($params)0 ) {
$_xml_rpc_params = array();
// always send the api key as first parameter
$_xml_rpc_params[] = _xml_RPC_prepare($this-api_key);
if ($method == "_xml_rpc.getSearchResults") {
$_xml_rpc_params[] = _xml_RPC_prepare( $this-prepareSearch($params) );
} else {
if ( is_array($params) && count($params) ) {
foreach ( $params as $name = $value ){
// prepare each parameter for the _xml_ rpc request
$int_value = (int) $value;
if ($value == $int_value) {
$value = $int_value;
} else {
$float_value = (float) $value;
if ($value == $float_value) {
$value = $float_value;
}
}
$_xml_rpc_params[] = _xml_RPC_prepare($value);
}
}
}
// send request to the server
$result = _xml_RPC_request ( $this-url, $this-path, array($method), $_xml_rpc_params, $user_agent='', $session_id);
$result = $result[1];
return $result;
//}
}
/*
*
* Automatically prepare the search parameters for the _xml_rpc request
* Retrieves all possible search parameters from $this-search_params set in constructor
*
* @return $_xml_rpc_params
*
*/
function prepareSearch($params) {
$_xml_rpc_params = array();
foreach ($this-search_params as $value) {
if ( isset($params[$value]) && $params[$value]<'' ) {
if ( is_array($params[$value]) ) {
foreach ($params[$value] as $filterName = $filterValue) {
$_xml_rpc_params[$value][$filterName] = $filterValue;
}
} else {
$_xml_rpc_params[$value] = $params[$value];
}
} elseif ( isset($this-forced_params[$value]) ) {
$_xml_rpc_params[$value] = $this-forced_params[$value];
}
}
/*if ( !isset($_REQUEST['offset']) ) {
$_xml_rpc_params['offset'] = (int)0;
}*/
return $_xml_rpc_params;
}
/*
*
* Automatically prepare the query string for the search pagination
* Retrieves all possible search parameters from $this-search_params set in constructor
*
* @return $query_string
*
*/
function buildSearchQueryString ()
{
$query_string = '';
foreach ($this-search_params as $value) {
if ( isset($_REQUEST[$value]) && $_REQUEST[$value]<'' ) {
if ( is_array($_REQUEST[$value]) ) {
foreach ($_REQUEST[$value] as $filterName = $filterValue) {
$query_string .= '&filters[' . htmlentities($filterName) . ']=' . htmlentities($filterValue);
}
} else {
//As "offset" will change in the URL of pagination buttons, every other value is stored to be added later in the URL
if ($value < "offset") {
$query_string .= '&' . htmlentities($value) . '=' . $_REQUEST[$value];
$_xml_rpc_params[$value] = $_REQUEST[$value];
}
}
} elseif ( isset($this-forced_params[$value]) ) {
$query_string .= '&' . htmlentities($filterName) . '=' . htmlentities($filterValue);
}
}
return $query_string;
}
/*
*
* Automatically prepare the page number and _link_s for navigation through results
*
* @return $pagination
*
*/
function getSearchPagination($result)
{
$pagination = '';
$previous__link__qs = '';
$next__link__qs = '';
//If no offset is set in the $_REQUEST array then it takes the value of 0
if (!isset($_REQUEST['offset'])) {
$offset = 0;
} else {
$offset = $_REQUEST['offset'];
}
if (isset($result['navigation__link_s'])) {
$current_page_number = $result['navigation__link_s']['currentPageNumber'];
$previous__link__qs = str_replace('/_xml_rpc/rpc?', '', $result['navigation__link_s']['previous']); // query string
$next__link__qs = str_replace('/_xml_rpc/rpc?', '', $result['navigation__link_s']['next']); // query string
}
//The values in $_REQUEST are stored in this variable to be used later in _link_s.
$query_string = $this-buildSearchQueryString();
//The "Previous" button
if ($previous__link__qs != NULL) {
$pagination .= '« Previous';
}
//Each page is then added to the list
foreach ($result['navigation__link_s']['pagination'] as $page_number = $page_qs ) {
if ($page_qs==''){
$pagination .= ' ... ';
} else {
$current_qs = str_replace('/_xml_rpc/rpc?', '', $page_qs). $query_string;
//$current_qs = '&action=' . $_REQUEST['action'] . $query_string;
$pagination .= ' $value) {
$esplode_url = explode ("=", $current_url[$key]);
foreach ($esplode_url as $key2 = $value2) {
if ($esplode_url[$key2] == "offset") {
$current_offset = $esplode_url[$key2+1];
}
}
}
if ($offset == $current_offset) {
$pagination .= "pagination_current";
} else {
$pagination .= "pagination";
}
$pagination .= '"' .$page_number . '';
}
}
//The "Next" button
if ($next__link__qs != NULL) {
$pagination .= 'Next »';
}
return $pagination;
}
/*public function prepareStatistics()
{
}*/
}
?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Advertisement

www.yoursite.com
Canasia Sports
Pozycjonowanie strony
Pozycjonowanie
www.truvati.pl
śmieszne filmy
śmieszne filmy
www.kawe.pl
kalkulator kredytowy
Kredyty mieszkaniowe, hipoteczne
www.kredytmieszkani…
Darmowe gry
darmowe gry, gry
www.gry.freetravel.…
pozycjonowanie

dioni.pl
Compare garmin nuvifone
Buy compare &read about the Garmin nuvifone. Guaranteed next working day delivery service available online in UK.

Pozycjonowanie stron internetowych
antique restoration london - phone cards - Detox - Funny jokes - Rechnung Online - Free p2p Software - Flights - Casas Prefabricadas - New Cars - embroidery - iron casting - www.kunstschmiede.pl - teksty piosenek - váhy - Small Business
liga typerów matma matma DISPLAYE domki sarbinowo
touring china urban legends ford news financial trade news automatyczne pozycjonowanie pozycjonowanie cennik pozycjonowanie firmy pozycjonowanie optymalizacja reklama regały metalowe pozycjonowanie sklepów kredyty inwestycyjne szukajcie skarbu Liny specjalistyczne jak grać na giełdzie szkoły językowe wrocław