DRAFT: Hello API

jmathai edited this page Jul 19, 2011 · 1 revision

Open Photo API / Hello

OpenPhoto, a photo service for the masses


  1. Purpose
  2. Endpoint
  3. Parameters
  4. Examples
  1. Response

Purpose of the Get Photo API

Hello world.


Endpoint

Authentication: optional

GET /hello.json

Parameters

None


Examples

Command line curl

curl http://jmathai.openphoto.me/hello.json

PHP

$ch = curl_init('http://jmathai.openphoto.me/hello.json');
curl_exec($ch);

Response

The response is in a standard response envelope.

  • message, A string describing the result. Don't use this for anything but reading.
  • code, 200 on success
  • result, A [Photo][Photo] object

Sample

{
  "message":"",
  "code":200,
  "result":"Hello, world!"
}