Skip to content
Browse files

Adding an example on how to use the API.

  • Loading branch information...
1 parent 47bf4f8 commit b856f8f44662a99793d5ae8c388ec2267df8cd0b @mohamedmansour committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.md
View
11 README.md
@@ -21,6 +21,17 @@ API, we got the signature to sign each AJAX request.
The signed key and time are *always* needed or it will explicitly return back that
your not authenticated.
+Example
+----
+
+To get a list of notifications
+
+ var socl = new SoclAPI();
+ socl.login();
+ socl.getNotifications(function(data) {
+ console.log(data);
+ });
+
Contributions welcomed!
----

0 comments on commit b856f8f

Please sign in to comment.
Something went wrong with that request. Please try again.