Git Product home page Git Product logo

gigya-node-sdk's People

Contributors

chronosis avatar jproulx avatar pcoucke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gigya-node-sdk's Issues

Gigya requires data center as a part of the URL for the API request.

Gigya now requires that API calls now be made against the associated data centers.

For example, if the Gigya API key is on the U.S. datacenter, and you are accessing the accounts service, than the URL for the REST endpoint should be: accounts.us1.gigya.com instead of accounts.gigya.com

Making calls to accounts.gigya.com is still supported for legacy reasons, but API calls made in this way will be crippled due to rate limiting that is enforced by Gigya.

You should update your defaults to include a datacenter (https://github.com/jproulx/Gigya-Node-SDK/blob/master/gigyasdk.js#L192-L20):

        defaults = {
            'apiKey'    : null,
            'secret'    : null,
            'domain'    : 'gigya.com',
            'datacenter'    : 'us1',
            'service'   : 'socialize',
            'method'    : null,
            'reqMethod' : 'GET',
            'nonceSize' : 32,
            'ssl'       : false
        };

And your code that generated the request (https://github.com/jproulx/Gigya-Node-SDK/blob/master/gigyasdk.js#L245-L251):

    request = {
        'host'    : [opts.service, opts.datacenter, opts.domain].join('.'),
        'path'    : '/' + [opts.service, opts.method].join('.'),
        'method'  : opts.reqMethod,
        'headers' : {
            'User-Agent' : 'Node-Gigya-SDK'
        }

Valid data centers are:
Region -- Data Center
U.S. -- us1
Europe -- eu1
Oceanic -- au1 (Available Nov. 2014)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.