diff --git a/views/api.erb b/views/api.erb index f3d195ea..fcd482f4 100644 --- a/views/api.erb +++ b/views/api.erb @@ -61,8 +61,7 @@ api.uploadFiles([{ // Display response from API console.log(resp) -}) - +})

@@ -87,13 +86,23 @@ api.uploadFiles([{

GET /api/info

- This call lets you retreive information about a web site. This call does not require site authorization if you provide a sitename argument. Note that the sitename is the same as a username. If you provide auth credentials, you will receive the info for the auth user's site. + This call lets you retreive information about a web site. This call does not require site authorization if you provide a sitename argument. Note that the sitename is the same as a username. If you provide auth credentials, you will receive the info for the auth user's site. Dates conform to RFC2822 format, and there are helpers for parsing it into a time object for most programming languages.

Examples

Using cURL
- - $ curl https://neocities.org/api/info?sitename=youpi - +
+$ curl https://neocities.org/api/info?sitename=youpi
+{
+  "result": "success",
+  "info": {
+    "sitename": "youpi",
+    "hits": 5072,
+    "created_at": "Sat, 29 Jun 2013 10:11:38 +0000",
+    "last_updated": "Tue, 23 Jul 2013 20:04:03 +0000",
+    "domain": null,
+    "tags": []
+  }
+}
$ curl https://YOURUSER:YOURPASS@neocities.org/api/info