ImageBAM API
Uploading Photos
This is the specification for building photo uploader applications.

Images should be POSTed to this URL:
http://www.imagebam.com/services/upload/
Parameters
Name Value Explanation
photo DATA The image to be uploaded.
gallery (optional) GID / NULL The gallery ID (GID) to be used. The GID must be generated before uploading a photo.
content_type 0 / 1 Content type: SFW (0), NSFW(1) >more info
API_key_dev your API key Your API-Key. >more info
API_key_user the user's API key The user's API key.
salt 32 characters alphanumeric Random string of 32 characters (a-zA-Z0-9) for higher security.
secret md5(API_sec_dev + API_sec_user + salt) 32 character secret by building the md5-checksum of the string consisting of your API-Secret, the user's API-Secret and the 32-character salt.
Example Response
<ID>111111</ID>
<URL>http://www.imagebam.com/image/cc509a111111</URL>
<thumbnail>http://thumbnails5.imagebam.com/142/cc509a111111.jpg</thumbnail>
<delcode>http://www.imagebam.com/remove/111111/c4ca4238a0b923820dcc509a6f75849b</delcode>
Error Codes
If the upload failes an Error Code is returned in the REST response format.

1: No image uploaded / zero filesize / general upload error
2: Developer API-Key has not been found
3: User API-Key has not been found
4: Content type has not been set
5: Invalid gallery ID
6: Secret is invalid
7: Image has been banned from Imagebam
8: File-extention is not allowed
9: File exceeded maximum allowed size
10: Invalid salt has been used
tux Powered by dedicated Linux servers. No frogs or beavers inside.

A Test Title