Changing valid openphoto.me to trovebox.com

This commit is contained in:
Jaisen Mathai 2013-01-22 13:51:50 -05:00
parent eabbc2f4ee
commit 163bb933fc
22 changed files with 32 additions and 32 deletions

View file

@ -42,7 +42,7 @@ _Authentication: optional_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -h current.openphoto.me -e /activities/list.json ./openphoto -p -h current.trovebox.com -e /activities/list.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -43,7 +43,7 @@ _None_
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
source secrets.sh source secrets.sh
./openphoto -p -h current.openphoto.me -e /group/d/view.json ./openphoto -p -h current.trovebox.com -e /group/d/view.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -43,7 +43,7 @@ _None_
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
source secrets.sh source secrets.sh
./openphoto -p -h current.openphoto.me -e /groups/list.json ./openphoto -p -h current.trovebox.com -e /groups/list.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -43,10 +43,10 @@ _Authentication: optional_
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
# without authentication # without authentication
./openphoto -p -h current.openphoto.me -e /hello.json ./openphoto -p -h current.trovebox.com -e /hello.json
# with authentication # with authentication
./openphoto -p -h current.openphoto.me -e /hello.json -F 'auth=true' ./openphoto -p -h current.trovebox.com -e /hello.json -F 'auth=true'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -45,7 +45,7 @@ _Authentication: optional_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -h current.openphoto.me -e /photo/b/view.json ./openphoto -p -h current.trovebox.com -e /photo/b/view.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -45,7 +45,7 @@ _Authentication: optional_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -h current.openphoto.me -e /photo/b/nextprevious.json ./openphoto -p -h current.trovebox.com -e /photo/b/nextprevious.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])
@ -117,7 +117,7 @@ The response is in a standard [response envelope](http://theopenphotoproject.org
], ],
"id" : "63", "id" : "63",
"appId" : "current.openphoto.me", "appId" : "current.trovebox.com",
"pathBase" : "\/base\/201108\/1313010849-opmeTbrBki.jpg", "pathBase" : "\/base\/201108\/1313010849-opmeTbrBki.jpg",
"dateUploadedMonth" : "08", "dateUploadedMonth" : "08",
"dateTakenMonth" : "08", "dateTakenMonth" : "08",

View file

@ -48,7 +48,7 @@ _Authentication: optional_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -h current.openphoto.me -e /photos/list.json -F 'tags=sunnyvale' ./openphoto -p -h current.trovebox.com -e /photos/list.json -F 'tags=sunnyvale'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -42,7 +42,7 @@ _None_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -h current.openphoto.me -e /tags/list.json ./openphoto -p -h current.trovebox.com -e /tags/list.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -43,7 +43,7 @@ _None_
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
source secrets.sh source secrets.sh
./openphoto -p -h current.openphoto.me -e /webhook/abcdefghijklmnopqrstuvwxyz/view.json ./openphoto -p -h current.trovebox.com -e /webhook/abcdefghijklmnopqrstuvwxyz/view.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])
@ -70,7 +70,7 @@ The response is in a standard [response envelope](http://theopenphotoproject.org
"code" : 200, "code" : 200,
"result" : { "result" : {
id: "abcdefghijklmnopqrstuvwxyz", id: "abcdefghijklmnopqrstuvwxyz",
appId: "current.openphoto.me", appId: "current.trovebox.com",
callback: "http://somehost.com/somepath", callback: "http://somehost.com/somepath",
topic: "photo.upload", topic: "photo.upload",
verifyToken: "qazwsxedcrfvz", verifyToken: "qazwsxedcrfvz",

View file

@ -48,7 +48,7 @@ _Authentication: required_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /action/photo/a/create.json -F 'type=comment' -F 'value=Here is my comment' -F 'email=jaisen@jmathai.com' ./openphoto -p -X POST -h current.trovebox.com -e /action/photo/a/create.json -F 'type=comment' -F 'value=Here is my comment' -F 'email=jaisen@jmathai.com'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])
@ -76,7 +76,7 @@ The response is in a standard [response envelope](http://theopenphotoproject.org
"result": "result":
{ {
id: "a", id: "a",
appId: "current.openphoto.me", appId: "current.trovebox.com",
targetId: "b", targetId: "b",
targetType: "photo", targetType: "photo",
email: "jaisen@jmathai.com", email: "jaisen@jmathai.com",

View file

@ -42,7 +42,7 @@ _N/A_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /action/photo/a/delete.json ./openphoto -p -X POST -h current.trovebox.com -e /action/photo/a/delete.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -43,7 +43,7 @@ _Authentication: required_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /group/create.json -F 'name=My Group' -F 'members=jaisen@jmathai.com' ./openphoto -p -X POST -h current.trovebox.com -e /group/create.json -F 'name=My Group' -F 'members=jaisen@jmathai.com'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -42,7 +42,7 @@ _None_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /group/a/delete.json ./openphoto -p -X POST -h current.trovebox.com -e /group/a/delete.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -43,7 +43,7 @@ _Authentication: required_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /group/a/update.json -F 'members=jaisen@jmathai.com' ./openphoto -p -X POST -h current.trovebox.com -e /group/a/update.json -F 'members=jaisen@jmathai.com'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])
@ -71,7 +71,7 @@ The response is in a standard [response envelope](http://theopenphotoproject.org
"result": "result":
{ {
id: 'a', id: 'a',
appId: 'current.openphoto.me', appId: 'current.trovebox.com',
name: 'My Group', name: 'My Group',
members: ['jaisen@jmathai.com'] members: ['jaisen@jmathai.com']
} }

View file

@ -42,7 +42,7 @@ _None_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /photo/a/delete.json ./openphoto -p -X POST -h current.trovebox.com -e /photo/a/delete.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -53,7 +53,7 @@ _Authentication: required_
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
source secrets.sh source secrets.sh
./openphoto -p -X POST -h current.openphoto.me -e /photo/a/update.json -F 'title=My Photo Title' -F 'tags=sunnyvale,downtown' ./openphoto -p -X POST -h current.trovebox.com -e /photo/a/update.json -F 'title=My Photo Title' -F 'tags=sunnyvale,downtown'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -62,7 +62,7 @@ _Authentication: required_
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
source secrets.sh source secrets.sh
./openphoto -p -X POST -h current.openphoto.me -e /photo/upload.json -F 'photo=@/path/to/photo.jpg' -F 'tags=sunnyvale,downtown' ./openphoto -p -X POST -h current.trovebox.com -e /photo/upload.json -F 'photo=@/path/to/photo.jpg' -F 'tags=sunnyvale,downtown'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -46,7 +46,7 @@ _Authentication: required_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /tag/create.json -F 'tag=sunnyvale' -F 'count=10' ./openphoto -p -X POST -h current.trovebox.com -e /tag/create.json -F 'tag=sunnyvale' -F 'count=10'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -45,7 +45,7 @@ _Authentication: required_
<a name="example-cli"></a> <a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /tag/sunnyvale/update.json -F 'count=10' ./openphoto -p -X POST -h current.trovebox.com -e /tag/sunnyvale/update.json -F 'count=10'
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -43,7 +43,7 @@ _None_
#### Command Line (using [openphoto-php][openphoto-php]) #### Command Line (using [openphoto-php][openphoto-php])
source secrets.sh source secrets.sh
./openphoto -p -X POST -h current.openphoto.me -e /webhook/abcdefghijklmnopqrstuvwxyz/delete.json ./openphoto -p -X POST -h current.trovebox.com -e /webhook/abcdefghijklmnopqrstuvwxyz/delete.json
<a name="example-php"></a> <a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php]) #### PHP (using [openphoto-php][openphoto-php])

View file

@ -46,7 +46,7 @@ All of the <a href="https://github.com/photo">source for OpenPhoto</a> is availa
This includes the web application, mobile apps and plugins for Wordpress just to name a few. This includes the web application, mobile apps and plugins for Wordpress just to name a few.
We've also got <a href="http://theopenphotoproject.org/documentation">lots of guides</a> to help you get started. We've also got <a href="http://theopenphotoproject.org/documentation">lots of guides</a> to help you get started.
If you'd rather not install the software yourself you can <a href="http://openphoto.me">sign up for a hosted account</a>. If you'd rather not install the software yourself you can <a href="http://trovebox.com">sign up for a hosted account</a>.
The hosted account may or may not be free depending on the service and what features you use. The hosted account may or may not be free depending on the service and what features you use.
---------------------------------------- ----------------------------------------

View file

@ -7,7 +7,7 @@ By default, when a photo is uploaded there are two versions of that photo which
The API is capable of returning URLs for any size version of every photo. This is acheived by passing in a parameter named `returnSizes` to the [GET Photos](http://theopenphotoproject.org/documentation/api/GetPhotos) and [GET Photo](http://theopenphotoproject.org/documentation/api/GetPhoto) APIs. This ensures that the response for the photo(s) will include a URL for the size(s) you specify. Here is an example. The API is capable of returning URLs for any size version of every photo. This is acheived by passing in a parameter named `returnSizes` to the [GET Photos](http://theopenphotoproject.org/documentation/api/GetPhotos) and [GET Photo](http://theopenphotoproject.org/documentation/api/GetPhoto) APIs. This ensures that the response for the photo(s) will include a URL for the size(s) you specify. Here is an example.
curl "http://current.openphoto.me/photo/63.json?returnSizes=123x123" curl "http://current.trovebox.com/photo/63.json?returnSizes=123x123"
This call returns the following response. This call returns the following response.
@ -15,7 +15,7 @@ This call returns the following response.
"code" : 200, "code" : 200,
"message" : "Photo 63", "message" : "Photo 63",
"result" : { "result" : {
"appId" : "current.openphoto.me", "appId" : "current.trovebox.com",
"creativeCommons" : "BY-NC", "creativeCommons" : "BY-NC",
"dateTaken" : "1313010850", "dateTaken" : "1313010850",
"dateTakenDay" : "10", "dateTakenDay" : "10",
@ -34,7 +34,7 @@ This call returns the following response.
"id" : "63", "id" : "63",
"latitude" : "", "latitude" : "",
"longitude" : "", "longitude" : "",
"path123x123" : "http://current.openphoto.me/photo/63/create/1a7f0/123x123.jpg", "path123x123" : "http://current.trovebox.com/photo/63/create/1a7f0/123x123.jpg",
"path200x200" : "http://opmecurrent.s3.amazonaws.com/custom/201108/1313010849-opmeTbrBki_200x200.jpg", "path200x200" : "http://opmecurrent.s3.amazonaws.com/custom/201108/1313010849-opmeTbrBki_200x200.jpg",
"pathBase" : "/base/201108/1313010849-opmeTbrBki.jpg", "pathBase" : "/base/201108/1313010849-opmeTbrBki.jpg",
"pathOriginal" : "/original/201108/1313010849-opmeTbrBki.jpg", "pathOriginal" : "/original/201108/1313010849-opmeTbrBki.jpg",
@ -50,7 +50,7 @@ This call returns the following response.
The most important keys in the response are `path123x123` and `path200x200`. Either of these URLs will correctly render the photo in the respective size. Notice, however, that the `path123x123` hostname is different from `path200x200`. This is important because this implies that a _123x123_ version of the photo doesn't exist and the API host needs to generate it. The following url will generate the correct version of the photo, store it to the proper file system, saves it to the database and returns it with a content-type of _image/jpeg_. The most important keys in the response are `path123x123` and `path200x200`. Either of these URLs will correctly render the photo in the respective size. Notice, however, that the `path123x123` hostname is different from `path200x200`. This is important because this implies that a _123x123_ version of the photo doesn't exist and the API host needs to generate it. The following url will generate the correct version of the photo, store it to the proper file system, saves it to the database and returns it with a content-type of _image/jpeg_.
http://current.openphoto.me/photo/63/create/1a7f0/123x123.jpg http://current.trovebox.com/photo/63/create/1a7f0/123x123.jpg
It's important to realize that the photo isn't generated and stored until this URL is called. This typically happens when the browser tries to display this photo. Once that has happened then the _123x123_ version exists both in the database and file system and calling the same API again returns a different URL for `path123x123`. It's important to realize that the photo isn't generated and stored until this URL is called. This typically happens when the browser tries to display this photo. Once that has happened then the _123x123_ version exists both in the database and file system and calling the same API again returns a different URL for `path123x123`.
@ -58,7 +58,7 @@ It's important to realize that the photo isn't generated and stored until this U
"code" : 200, "code" : 200,
"message" : "Photo 63", "message" : "Photo 63",
"result" : { "result" : {
"appId" : "current.openphoto.me", "appId" : "current.trovebox.com",
"creativeCommons" : "BY-NC", "creativeCommons" : "BY-NC",
"dateTaken" : "1313010850", "dateTaken" : "1313010850",
"dateTakenDay" : "10", "dateTakenDay" : "10",
@ -95,7 +95,7 @@ The URL for `path123x123` now points to a static resource.
You can specify multiple sizes for the `returnSizes` delimited by commas. You can specify multiple sizes for the `returnSizes` delimited by commas.
curl "http://current.openphoto.me/photo/63.json?returnSizes=123x123,300x300xBW" curl "http://current.trovebox.com/photo/63.json?returnSizes=123x123,300x300xBW"
### Understanding options for returnSizes ### Understanding options for returnSizes