jproulx / gigya-node-sdk Goto Github PK
View Code? Open in Web Editor NEWNode module that wraps around Gigya's public REST API
Node module that wraps around Gigya's public REST API
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.