Skip to content

Using JS SDK on Node.js #1

Open

Description

@jkrawczyk

Hi, could you please give an example of using the SDK with JavaScript on Node.js? I was trying to do it similar to CoffeeScript example, i.e.:

var v1sdk = require('./v1sdk.js');
var V1Server = v1sdk.V1Server;
console.log(v1sdk);
console.log(V1Server);

but after running script in node I get in result:
{}
undefined

Am I doing something wrong? Node.js version: 0.10.21. Thanks.

Activity

  1. JogoShugh commented on Nov 1, 2013

    @JogoShugh
    Contributor

    Thanks for the interest. It looks like some of the dependencies have been updated, and our code might need some adjustments. I'm looking into it right now.

  2. JogoShugh commented on Nov 3, 2013

    @JogoShugh
    Contributor

    Can you take a look at the "sample.js" and "sample2.js" now in the repository? I just added them, and I think they should now work as I have tested them.

    Also, you might want to check out this sample in JSFiddle which is running against a public instance I just launched in Amazon:

    Using with jQuery and jQuery UI: http://jsfiddle.net/JoshGough/urq3D/

    Rough cut at using with AngularJS: http://jsfiddle.net/JoshGough/C854D/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions