Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70baa2a
commit c2fce7b
Showing
5 changed files
with
99 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# API Method: /api/photo/rate | ||
# flags=comments | ||
|
||
Rate a photo or video. | ||
|
||
### Parameters | ||
|
||
<table class="pretty"> | ||
<tr><th>Parameter</th><th>Description</th></tr> | ||
<tr> | ||
<td> | ||
<tt>photo_id (required)</tt> | ||
</td> | ||
<td> | ||
The ID of the video to rate. | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
<tt>rating (required)</tt> | ||
</td> | ||
<td> | ||
The rating normalized to a float value between 0 and 5. You will be in charge of converting the internal 0-1 value to match your site's rating scheme. For example, in a 5-star rating system, 0 stars will convert to a <tt>0</tt> rating, 1 star is <tt>0.25</tt> and so on up to 5 stars and <tt>1</tt>. | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
### Permission level | ||
|
||
The minimum required [permission level](index#permission-level) is: | ||
|
||
anonymous | ||
|
||
|
||
### Example XML Response | ||
|
||
<response status="ok" permission_level="anonymous" cached="0"> | ||
<rating>0.5</rating> | ||
</response> | ||
|
||
### Example JSON Response | ||
|
||
{ | ||
"status": "ok", | ||
"permission_level":"anonymous", | ||
"cached":"0", | ||
"rating":{"rating": "0.5"}, | ||
"p": "1", | ||
"size": "1", | ||
"site": ..., | ||
"endpoint": "/api/photo/rate" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# API Method: /api/utility/geography | ||
# flags=comments | ||
|
||
Detect geopgraphical location from IP. | ||
|
||
### Response | ||
|
||
<response status="ok" permission_level="anonymous" cached="0"> | ||
<country_iso>DK</country_iso> | ||
<region></region> | ||
<city></city> | ||
<lat></lat> | ||
<long></long> | ||
</response> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# API Method: /api/utility/video-capabilties | ||
# flags=comments | ||
|
||
List mobile capabilities. | ||
|
||
### Response | ||
|
||
<response status="ok" permission_level="anonymous" cached="0"> | ||
<mobile_format>video_mobile_h263_aac</mobile_format> | ||
<playback_3gpp>t</playback_3gpp> | ||
<model_name>iPhone</model_name> | ||
<playback_mp4_p>t</playback_mp4_p> | ||
<brand_name>Apple</brand_name> | ||
<playback_h263_amr_p>t</playback_h263_amr_p> | ||
<playback_h263_p>t</playback_h263_p> | ||
<playback_mpeg4_amr_p>t</playback_mpeg4_amr_p> | ||
<playback_mpeg4_p>t</playback_mpeg4_p> | ||
<device_id>apple_iphone_ver2_1</device_id> | ||
<playback_h263_aac_p>t</playback_h263_aac_p> | ||
<playback_amr_p>t</playback_amr_p> | ||
<relative_distance>0.15277777777777777778</relative_distance> | ||
</response> |