•   about 3 years ago

Basic examples Rest API or straight Javascript?

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

  • 6 comments

  • Moderator   •   about 3 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

  •   •   about 3 years ago

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

  • Moderator   •   about 3 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

  •   •   about 3 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.

  • Moderator   •   about 3 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

  •   •   about 3 years ago

    @Clyde if you're pretty good at javascript then perhaps you might consider building an end-to-end application. ConextIO has got a node.js library which is really js for the back-end, so the learning curve should be not so steep for you. Hope that helps. Good luck

Comments are closed.