Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed NPM modules from repo. #22

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules*
test/test-credentials.js
npm-debug.log
npm-debug.log
12 changes: 6 additions & 6 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var crypto = require("crypto"),
http = require("https"),
p = Client.prototype;

p.init = function(username, sharedSecret, environment, options){
p.init = function(username, sharedSecret, environment, options){
this.environments = {
sanJose: "api.omniture.com",
dallas: "api2.omniture.com",
Expand All @@ -20,7 +20,7 @@ p.init = function(username, sharedSecret, environment, options){
this.environment = (environment) ? this.environments[environment] : this.environments.sanJose;
this.nonce = null;
this.created = null;
this.version = +((options && options.version) || 1.3);
this.version = +((options && options.version) || 1.4);
this.path = "/admin/" + this.version + "/rest/";
this.log = (options && options.log) ? true : false;
this.proxy = options.proxy;
Expand Down Expand Up @@ -72,18 +72,18 @@ p.sendRequest = function(method, parameters, callback){
agent: false
};
if(self.proxy)
options.proxy = self.proxy;
options.proxy = self.proxy;
var request = require("request").defaults(options);
request.post({url:"https://"+ this.environment+this.path+"?method="+method, form: parameters}, function (error, response, body) {
if (error || response.statusCode != 200) {
callback(new Error(error));
callback(new Error(error || body));
return;
}
}
self.logger("info","HTTP Request Successful");
var responseData = "";
self.logger("info", "API Request Finished");
callback(null,body);
})
});
}

p.generateNonce = function(){
Expand Down
1 change: 0 additions & 1 deletion node_modules/.bin/nodeunit

This file was deleted.

3 changes: 0 additions & 3 deletions node_modules/nodeunit/.npmignore

This file was deleted.

68 changes: 0 additions & 68 deletions node_modules/nodeunit/CONTRIBUTORS.md

This file was deleted.

19 changes: 0 additions & 19 deletions node_modules/nodeunit/LICENSE

This file was deleted.

177 changes: 0 additions & 177 deletions node_modules/nodeunit/Makefile

This file was deleted.

Loading