POST v1/Photo/SaveFromUrl?url={url}
This method downloads a photo from a publically accessible URL and saves the image to the Tradevine account using the given photo-identifier (can be a file-name or any other name for the photo)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
url |
The URL encoded url of the photo to download |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
The photo data from the Tradevine database
Name | Description | Type |
---|---|---|
PhotoID |
The unique internal identifier of each photo in Tradevine e.g. 345146054865858558 |
integer |
OrganisationID |
The internal identifier of this organisation in Tradevine e.g. 3451460443781171981 |
integer |
FileName |
The uploaded file name |
string |
ContentsBase64 |
The file content, Base64 encoded |
string |
TradevineUrl |
The Tradevine URL of the photo e.g. https://nz.tradevine.com/MyOrgName/ProductPhotos/GetPhoto?photoID=345146054865858558 |
string |
PublicUrl |
The public non-authenticated URL of the full-size photo e.g. https://nz.tradevine.com/BlobStorage/GetFullPhoto?photoID=345146054865858558&organisationID=3451460443781171981 |
string |
PublicThumbnailUrl |
The public non-authenticated URL of the thumbnail photo e.g. https://nz.tradevine.com/BlobStorage/GetFullPhoto?photoID=345146054865858558&organisationID=3451460443781171981&size=100 |
string |
CreatedDate |
The date and time (in UTC) that the photo was created |
date |
CreatedBy |
The internal Tradevine ID of the user that created the photo |
integer |
ModifiedDate |
The date and time (in UTC) that the photo was last modified |
date |
ModifiedBy |
The internal Tradevine ID of the user that last modified the photo |
integer |
Response Formats
application/json
Sample:
{ "PhotoID": 3500531279205274929, "OrganisationID": 3500531373198221079, "FileName": "Image1.jpg", "ContentsBase64": "", "TradevineUrl": null, "PublicUrl": null, "PublicThumbnailUrl": null, "CreatedDate": "2013-04-02T07:30:06Z", "CreatedBy": 1, "ModifiedDate": "2013-04-02T07:30:06Z", "ModifiedBy": 1 }