Changeset 18732


Ignore:
Timestamp:
Oct 24, 2012, 10:24:44 PM (8 years ago)
Author:
rvelices
Message:

add page_url (canonical picture url) for web service methods images.search, tags.getImages, images.getInfo, categories.getImages

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r17675 r18732  
    149149  $ret = array();
    150150
     151  $ret['page_url'] = make_picture_url( array(
     152            'image_id' => $image_row['id'],
     153            'image_file' => $image_row['file'],
     154          )
     155        );
     156
    151157  $src_image = new SrcImage($image_row);
    152158
     
    183189{
    184190  return array(
    185     'id','element_url', 'file','width','height','hit','date_available','date_creation'
     191    'id','element_url', 'page_url', 'file','width','height','hit','date_available','date_creation'
    186192    );
    187193}
  • trunk/tools/ws.htm

    r18079 r18732  
    151151        <blockquote>
    152152        </blockquote>
    153        
    154         <hr>
     153        <br>
    155154      </div> <!-- methodDescription -->
    156155     
     
    212211      </div> <!-- testForm -->
    213212     
    214       <hr>
     213      <br><br>
    215214     
    216215      <h3>Result</h3>
Note: See TracChangeset for help on using the changeset viewer.