diff --git a/samples/configuration.html b/samples/configuration.html index 9e3167c..a5d626a 100644 --- a/samples/configuration.html +++ b/samples/configuration.html @@ -1,137 +1,153 @@ - - - Kidozen Samples - - - - - - - - -
-
-

Kidozen - Config Samples

- back -
- -
- -
-

Manipulate Config

-
- Get Value - Set Value - Delete Value -
-
-                   
-
- -
-

Get All

- -

-                
- -
- - -
- Logs - Errors -
-
-
-
-
- - - + + + Kidozen Samples + - + - var config = new Kido().config(); + - $(".set-new-value").click(function(e){ + +
+
+

Kidozen - Config Samples

+ back +
- config - .set("test", {"foo": "bar"}) - .done(function(ret){ - writeActionLog("set configuration value", ret); - }) - .fail(function(e, x, Y){ - writeError(e); - }); - }); +
- $(".get-value").click(function(e){ +
+

Manipulate Config

+
+ Get Value + Set Value + Delete Value +
+
+                   
+
- config - .get("test") - .done(function(ret){ - writeActionLog("get configuration value", JSON.stringify(ret)); - $('#config-result').html(JSON.stringify(ret)); - }) - .fail(function(e, x, Y){ - writeError(e); - }); - }); +
+

Get All

+ +

+            
- $(".get-names").click(function(e){ - config - .getAll() - .done(function(ret){ - writeActionLog("configuration get all", ret); - $('#get-names-result').html(JSON.stringify(ret)); - }) - .fail(function(e, x, Y){ - writeError(e); - }); - }); +
+ + +
+ Logs + Errors +
+
+
+
+
- $(".delete-value").click(function(e){ + + - config - .del("test") - .done(function(ret){ - writeActionLog("delete configuration value", ret); - }) - .fail(function(e, x, Y){ - writeError(e); + - + + diff --git a/samples/indexes.html b/samples/indexes.html index e0e1c95..04b1af8 100644 --- a/samples/indexes.html +++ b/samples/indexes.html @@ -1,91 +1,103 @@ - - - Kidozen Samples - - - - - - - - -
-
-

Kidozen - Config Samples

- back -
-
- -

Indexation example

-

Enter 'object set name' name first!

- -
- - -

- -

- -

- - -

- - -

- - -

- - -

- - -

- - -

- - -

- - - - -
-
- -

- -

- -

- -

-

log

-
    -
-
+ + + Kidozen Samples + + + + + + + + + +
+
+

Kidozen - Config Samples

+ back +
+ +
+ +

Indexation example

+

Enter 'object set name' name first!

+ +
+ + +

+ +

+ +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + + + +
+
+ +

+ +

+ +

+ +

+

log

+
    +
+
- + + diff --git a/samples/logging.html b/samples/logging.html index 19987c4..a002128 100644 --- a/samples/logging.html +++ b/samples/logging.html @@ -1,190 +1,213 @@ - - - Kidozen Samples - - - - - - - -
-
-

Kidozen - Logging Samples

- back -
-
+ + + Kidozen Samples + + + + + + + + +
+
+

Kidozen - Logging Samples

+ back +
+ +
-
-

Write

+
+

Write

-
+                
     {"foo": "bar"}
                     
- - + -
-

Get

- -
+            
-
-
+
+

Get

+ +
 
-                
-

Clear

- -
+
+
-
- - -
- Logs - Errors -
-
-
-
+
+

Clear

+
+ +
+ + +
+ Logs + Errors +
+
+
+
+
- + + }); + + + diff --git a/samples/mail.html b/samples/mail.html index 91551a1..eae1990 100644 --- a/samples/mail.html +++ b/samples/mail.html @@ -1,20 +1,22 @@ - - - Kidozen Samples - - - - - - - - + + + + Kidozen Samples + + + + + + + + +
@@ -59,61 +61,67 @@

Send email

+ diff --git a/samples/notifications.html b/samples/notifications.html index 0ca95bd..0fb92de 100644 --- a/samples/notifications.html +++ b/samples/notifications.html @@ -1,20 +1,22 @@ - - - Kidozen Samples - - - - - - - - + + + + Kidozen Samples + + + + + + + + +
@@ -59,8 +61,8 @@

Kidozen - Notifications Sample

- - + +

log

@@ -73,53 +75,62 @@

log

- + + diff --git a/samples/pubsub.html b/samples/pubsub.html index 793e07f..275a24c 100644 --- a/samples/pubsub.html +++ b/samples/pubsub.html @@ -1,91 +1,101 @@ - + - - - Kidozen Samples - - - - - - - - - -
- -
-

Kidozen - Storage Samples

- back -
- -
- -
-
- - -
-
- - -
- -
- -

History

-
    -
- - -
+ + + + Kidozen Samples + + + + + + + + + + +
+ +
+

Kidozen - Storage Samples

+ back
- - - - +
- + + + - + return false; + }); + + }); + + + diff --git a/samples/queues.html b/samples/queues.html index 3dfebf1..c09a29a 100644 --- a/samples/queues.html +++ b/samples/queues.html @@ -1,68 +1,65 @@ - - - Kidozen Samples - - - - - - - - -
- -
-

Kidozen - Queue Sample

- back -
-
+ + + Kidozen Samples + -
-

Push an object

-
{"action": "approve", orderId: 1234}
- - -
+ + + + + + + +
+ +
+

Kidozen - Queue Sample

+ back +
+ +
+ +
+

Push an object

+
{"action": "approve", orderId: 1234}
+ + +
-
- - -
- Logs - Errors -
-
-
-
- -
-

Read me

-

Queues example

-

- This is an example of queues in Kidozen. -

-
Pushing messages to the queue
-

- Kidozen handles pushing messages to arbitraries queues with a simple HTTP POST to the application url as: -
- /queue/local/queueName -
- or to another application queue as: -
- /queue/anotherApplication/queueName -
- The method of the request should be a POST, the content type should be "application/json" and the body should have the message to post to the queue. -

-
Consuming the Queue
-

- Consuming the Queue is not something that you will normally do in a mobile application. However you can do this by simple using HTTP DELETE request. -
- As an example you can consume a queue from ruby as follows: -

-
+            
+ + +
+ Logs + Errors +
+
+
+
+ +
+

Read me

+

Queues example

+

+ This is an example of queues in Kidozen. +

+
Pushing messages to the queue
+

+ Kidozen handles pushing messages to arbitraries queues with a simple HTTP POST to the application url as: +
/queue/local/queueName +
or to another application queue as: +
/queue/anotherApplication/queueName +
The method of the request should be a POST, the content type should be "application/json" and the body should have the message to post to the queue. +

+
Consuming the Queue
+

+ Consuming the Queue is not something that you will normally do in a mobile application. However you can do this by simple using HTTP DELETE request. +
As an example you can consume a queue from ruby as follows: +

+
     require 'net/http'
     require 'uri'
     uri = URI.parse('//localhost:5000/queue/local/tasks/next')
@@ -77,64 +74,79 @@ 
Consuming the Queue
rescue Exception=>e end
-
-
- +
- - - - var queue = new Kido().queues().queue('sample'); + + - } - - diff --git a/samples/security.html b/samples/security.html index 9819ffa..e061a14 100644 --- a/samples/security.html +++ b/samples/security.html @@ -1,58 +1,71 @@ - - - Kidozen Samples - - - - - - - - - -
- -
-

Kidozen - Security Samples

- back -
- -
-

Logged in user

-
    -
- - -
-
- - - - - - + + + + Kidozen Samples + + + + + + + + + + +
+ +
+

Kidozen - Security Samples

+ back +
+ +
+

Logged in user

+
    +
+ + +
+
+ + + + + + + diff --git a/samples/sms.html b/samples/sms.html index 9336e88..528504e 100644 --- a/samples/sms.html +++ b/samples/sms.html @@ -1,130 +1,144 @@ - - - Kidozen Samples - - - - - - - - -
- -
-

Kidozen - Storage Samples

- back + + + + Kidozen Samples + + + + + + + + + +
+ +
+

Kidozen - Storage Samples

+ back +
+ +
+ +
+ +
-
+
+ + +
-
- - -
+
+

Send or Query

-
- - + -
-

Send or Query

+
- +
+ + +
+ Logs + Errors +
+
+
+
-
- - -
- Logs - Errors -
-
-
-
+
-
+ + -
+ + var application = 'app-name', + marketplace = 'my-company.kidocloud.com', + secretKey = 'your-app-secret-key', + kido = new Kido(application, marketplace, { + secretKey: secretKey + }); + + var sms = kido.sms(), + id = null; + + $(".send-msg").click(function() { + + var toPhone = $("#toPhone").val(), + message = $("#testMsg").val(); - + - } - - diff --git a/samples/storage.html b/samples/storage.html index 10474c5..d6f649c 100644 --- a/samples/storage.html +++ b/samples/storage.html @@ -1,20 +1,22 @@ - - - Kidozen Samples - - - - - - - - + + + + Kidozen Samples + + + + + + + + +
@@ -26,47 +28,43 @@

Kidozen - Storage Samples

- - + +
-

Manipulate an object

- -
- - -
- -
- Insert - Update - Delete -
+

Manipulate an object

+ +
+ + +
+ +
+ Insert + Update + Delete +
-

Get an object

-
- - -
- -
+                

Get an object

+
+ + +
+ +
               
-

Get Object set

- -
+                

Get Object set

+ +
                
@@ -88,138 +86,150 @@

Get Object set

- + +