- Online foto albums, foto's opladen, online fotogalerij

Home > Tools > API Help Galerij | Labels | Prijzen | Mogelijkheden | Contact
API Help Topics
Information
Welcome
API Key
Protocols
Soap
REST
General Methods
Ping
Upload
Authentication Methods
Authentication Mechanism (NEW)
Authentication_GetTicket
Authentication_CheckTicket
Authentication_CloseTicket
User Methods
User_Create
Album Methods
Album_FetchAll
Album_Fetch
Album_Create
Photo Methods
Photo_FetchTimeLineOverview
Photo_FetchFromTimeLine
Photo_FetchFromAlbum
Photo_FetchExifInfo
Photo_GetImage
Photo_GetOriginalImage

Upload

Upload photos is independent of the protocol. The photos should be posted to this URL with a simple form post:
http://www.pixagogo.com/tools/api/upload.aspx
Set the encoding type to "multipart/form-data".
Here is a simple example of the form that should be posted:
<form enctype="multipart/form-data" method="post" ID="Form1"
         action="http://www.pixagogo.com/tools/api/upload.aspx">
  <input type="hidden" name="api_key" value="[API_KEY]" ID="Hidden1"/>
  <input type="hidden" name="ticket" value="[TICKET]" ID="Hidden2"/>
  <input type="hidden" name="size" value="[SIZE]" ID="Hidden3"/>
  <input type="hidden" name="hash" value="[HASH]" ID="Hidden4"/>
  <input type="hidden" name="album_id" value="[ALBUM_ID]" ID="Hidden5"/>
  <input type="hidden" name="description" value="[DESCRIPTION]" ID="Hidden5"/>
  <input type="file" name="file_name" value="photo.jpg" ID="File1"/>
  <input type="submit" value="Upload" ID="Submit1" NAME="Submit1"/>
</form>
The fields size and hash are optional.
  • If they are not specified, the size or hash are not checked.
  • If they are specified, the size or hash are checked.
The field album_id is also optional. If specified, the photo is added to the album.

Forms fields

api_key (string) [Required]
The api key
ticket (string) [Required]
The authentication ticket
size (long) [Optional]
The file size in bytes
hash (hash string) [Optional]
The Base32 encoded md5
album_id (string) [Optional]
The album id where the photo can be added
description (string) [Optional]
The photo description

Return parameters on Success

The Reply object with ResultType Success.
The field return_object is a Photo object.

Return parameters on Failure

The Reply object with ResultType Failure.
The field return_object is an Error object. Possible errors:
  • Invalid input parameter(s).
  • Invalid API key
  • Method is not permitted for this API key
  • Invalid authentication ticket
  • File size differs from specified file size
  • File hash differs from specified file hash

Over ons    Algemene voorwaarden    Privacy Verklaring    Links    News    Tools    Help
© Telenet 2007