{"action":"created","issue":{"url":"https://api.github.com/repos/mentum/invoked-website/issues/7","labels_url":"https://api.github.com/repos/mentum/invoked-website/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mentum/invoked-website/issues/7/comments","events_url":"https://api.github.com/repos/mentum/invoked-website/issues/7/events","html_url":"https://github.com/mentum/invoked-website/issues/7","id":69961575,"number":7,"title":"Code examples","user":{"login":"slvnperron","id":1315508,"avatar_url":"https://avatars.githubusercontent.com/u/1315508?v=3","gravatar_id":"","url":"https://api.github.com/users/slvnperron","html_url":"https://github.com/slvnperron","followers_url":"https://api.github.com/users/slvnperron/followers","following_url":"https://api.github.com/users/slvnperron/following{/other_user}","gists_url":"https://api.github.com/users/slvnperron/gists{/gist_id}","starred_url":"https://api.github.com/users/slvnperron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slvnperron/subscriptions","organizations_url":"https://api.github.com/users/slvnperron/orgs","repos_url":"https://api.github.com/users/slvnperron/repos","events_url":"https://api.github.com/users/slvnperron/events{/privacy}","received_events_url":"https://api.github.com/users/slvnperron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-21T21:51:12Z","updated_at":"2015-04-22T16:37:29Z","closed_at":null,"body":"## Javascript\r\n\r\n```js\r\nvar invoked = require('invoked');\r\nvar add = invoked('github/mentum/invoked-samples', 'csharp-addition');\r\nadd(5, 10, function(err, result) {\r\n    if (err) console.log('Error: ', err);\r\n    else     console.log('Success: ', result); // Prints 15\r\n});\r\n```\r\n\r\n## Csharp\r\n\r\n```csharp\r\ntry {\r\n    var add = new Invokable<int>(\"github/mentum/invoked-samples\", \"php-addition\");\r\n    var result = await add.CallAsync(5, 10);\r\n    Console.WriteLine(\"Success: {0}\", result); // Prints 15\r\n}\r\ncatch(Exception e) {\r\n    Console.WriteLine(\"Error: {0}\", e.Message);\r\n}\r\n```\r\n\r\n## Curl\r\n\r\n```bash\r\ncurl --user 'api:<your api key here>' \\\r\n    https://api.invoked.io/github/mentum/invoked-samples/csharp-addition/invoke \\\r\n    -F a=5\\\r\n    -F b=10\r\n# Outputs 15\r\n```"},"comment":{"url":"https://api.github.com/repos/mentum/invoked-website/issues/comments/95257636","html_url":"https://github.com/mentum/invoked-website/issues/7#issuecomment-95257636","issue_url":"https://api.github.com/repos/mentum/invoked-website/issues/7","id":95257636,"user":{"login":"slvnperron","id":1315508,"avatar_url":"https://avatars.githubusercontent.com/u/1315508?v=3","gravatar_id":"","url":"https://api.github.com/users/slvnperron","html_url":"https://github.com/slvnperron","followers_url":"https://api.github.com/users/slvnperron/followers","following_url":"https://api.github.com/users/slvnperron/following{/other_user}","gists_url":"https://api.github.com/users/slvnperron/gists{/gist_id}","starred_url":"https://api.github.com/users/slvnperron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slvnperron/subscriptions","organizations_url":"https://api.github.com/users/slvnperron/orgs","repos_url":"https://api.github.com/users/slvnperron/repos","events_url":"https://api.github.com/users/slvnperron/events{/privacy}","received_events_url":"https://api.github.com/users/slvnperron/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T16:37:29Z","updated_at":"2015-04-22T16:37:29Z","body":"@jackdbernier je suis noob en python aussi, comment ça marche le async?"}}