•   over 7 years ago

Basic examples Rest API or straight Javascript?

Are there examples that are not wrapped, with straight javascript or rest api calls?

  • 5 comments

  • Manager   •   over 7 years ago

    Hello Clyde,
    All of our client libraries, or wrappers, are open source on our github. I'd encourage you to take a look at those and see how they form a request. https://github.com/contextio

    Cheers and let me know if you need help with anything else,
    Tony

  •   •   over 7 years ago

    Can you guys just put together a few examples in JavaScript. Very basic. Maybe an authorization, and a basic call.

  • Manager   •   over 7 years ago

    Hi Clyde,
    It can be quite tough to keep credentials secret on the client side, which is why we don't provide examples. I encourage you to set up a very thin proxy server that can proxy calls to your javascript client. Check out this article for more info on why that's a good idea: http://alexbilbie.com/2014/11/oauth-and-javascript/

    Cheers,
    Tony

  •   •   over 7 years ago

    Actually I would be doing server side calls in .net

    So even basic rest api examples would be amazing. I was going to extrapolate the JavaScript to rest api calls anyway.

    So basic rest examples would be amazing. If in fact rest API server side calls are permitted.

  • Manager   •   over 7 years ago

    Hi Clyde,
    We don't have a library in .net so I don't have any examples I can share currently with .net. You could use a library like RestSharp to sign and make requests to Context.IO using .net. I'd be happy to provide examples in other web languages, if that'd help you out. We are planning on creating some .net resources, but unfortunately, they're not ready quite yet!

    Cheers,
    Tony

Comments are closed.