The Set is used to get the images for trails that were submitted by the arg acctID user. API key only. This endpoint will return photos that have not yet been approved by RTC staff.
Resource URI
only the set is used
Resource Properties
Parameter
|
Format
|
Description
|
Allows Null
|
caption |
string |
Cpation for the image |
no |
detailUrl |
string |
Formatted traillink url for trail |
no |
displayName |
string |
User name for submitter |
no |
imageID |
long |
unique identifier for image |
no |
lat |
decimal |
Latitude for image. 0 if unknown |
no |
lon |
decimal |
Longitude for image. 0 if unknown |
no |
mimeType |
string |
mime type for image. |
no |
postDate |
date |
Date image was posted |
no |
submitterAcctID |
long |
unique id for submitter |
no |
title |
string |
Title for the image |
no |
trailID |
long |
Unique ID for trail |
no |
trailName |
string |
Name of trail |
no |
Error Responses
REST API: Accounts/Trails/Images Set
Get the images for trails that were submitted by the arg acctID user. API key only
Resource URI
/Accounts/7440532/Trails/Images/?api_key=xxx
Set Filters
HTTP GET
Get thew images submitted by the arg acctID. To view the image, get
http://www.traillink.com/imagehandler.ashx?id={imageID}&t={type}
{type} can be "sm" for a thumbnail, "md" for a 300px image, or lg for full size
JSON Request:
Body empty
JSON Response:
[{
"caption": "This is my caption",
"detailUrl": "trail-name-test-2",
"displayName": "johnqsample",
"imageID": 26620,
"lat": "-74.32",
"lon": "40.52777777777780",
"mimeType": "image\/jpeg",
"postDate": "2011-10-04 17:37:13Z",
"submitterAcctID": 7440532,
"title": "This is the title",
"trailID": 6683560,
"trailName": "Trail Name Test 2"
}]
XML Request:
XML Response: