[20:33:12] endel:~/Projects/clan-platform [master]
$ dl-api console
...
_ _ _ _
__| | | __ _ _ __ (_) ___ ___ _ __ ___ ___ | | ___
/ _` | |_____ / _` | '_ \| | / __/ _ \| '_ \/ __|/ _ \| |/ _ \
| (_| | |_____| (_| | |_) | | | (_| (_) | | | \__ \ (_) | | __/
\__,_|_| \__,_| .__/|_| \___\___/|_| |_|___/\___/|_|\___|
|_|
API Documentation: http://doubleleft.github.io/dl-api-javascript
Available variables to hack on:
- dl - DL.Client
- config - .dl-config
- $ - jQuery 2.1.0
- window
dl-api> dl
{ url: 'http://dl-api.ddll.co/',
appId: '6',
key: 'b943f511742a326de59607436276e433',
keys: { client: [Circular] },
auth: { client: [Circular], currentUser: null },
system: { client: [Circular] } }
dl-api> dl.collection('test').create({name: "Something!"})
[object Object]
dl-api> dl.collection('test').then()
[ Querying result... ]
dl-api>
┌─────┬──────────────┬──────────────┬──────────────┐
│ _id │ name │ created_at │ updated_at │
├─────┼──────────────┼──────────────┼──────────────┤
│ '1' │ 'Something!' │ '1394321770' │ '1394321770' │
└─────┴──────────────┴──────────────┴──────────────┘
dl-api>