Notice: This article is maintained for historical purposes. The Bixly Automate/Nebri OS platform that Bixly built, and this article features, is no longer available. Checkout Serverless Providers as an alternative.
Interested in connecting your jQuery to your Nebri instance? We would like to provide these two helper libraries to kick start your efforts.
What you get:
api_request
null
should be passednull
should be sent if a callback is not specified.null
should be sent if an error callback is not specified.<script src="js/jquery.nebri.js"></script> <script src="js/jquery.nebri_auth.js"></script> <script type="text/javascript"> var token_client = new $.NebriTokenClient("instance_name", "token"); token_client.api_request("nebrios_authentication", "token_auth_endpoint", "POST", {'key': 'value'}, function(data){ console.log(data); }); var basic_client = new $.NebriBasicClient("instance_name", "username", "password"); basic_client.api_request("nebrios_authentication", "basic_auth_endpoint", "POST", null, function(data){ console.log(data); }); var oauth_client = new $.NebriOAuthClient("instance_name", "consumer_key", "consumer_secret", "access_token"); oauth_client.api_request("nebrios_authentication", "oauth_endpoint", "POST", null, function(data){ console.log(data); }); var oauth_client_no_token = new $.NebriOAuthClient("instance_name", "consumer_key", "consumer_secret"); oauth_client.api_request("nebrios_authentication", "oauth_endpoint", "POST", null, function(data){ console.log(data); }, function(error){ console.log(error) }); </script>
Now the software you are creating on your server can easily reach out to your Nebri instance to pull/push information. Ajax to your Nebri instance all day!