Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't expose SailthruClient class

For sake of simplicity, using createSailthruClient() or createClient()
are recommended to use for initializing the client
  • Loading branch information...
commit f108cc95afb16ea4dbabf15967b285d78735b53d 1 parent f14ddbf
@infynyxx infynyxx authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/sailthru.js
  2. +1 −1  src/sailthru.coffee
View
2  lib/sailthru.js
@@ -76,7 +76,7 @@
};
return SailthruRequest;
})();
- exports.SailthruClient = SailthruClient = (function() {
+ SailthruClient = (function() {
function SailthruClient(api_key, api_secret, api_url) {
this.api_key = api_key;
this.api_secret = api_secret;
View
2  src/sailthru.coffee
@@ -63,7 +63,7 @@ class SailthruRequest
_api_request: (uri, data, request_method, callback) ->
return @_http_request uri, data, request_method, callback
-exports.SailthruClient = class SailthruClient
+class SailthruClient
constructor: (@api_key, @api_secret, @api_url = false) ->
@api_url = 'https://api.sailthru.com' if @api_url is false
@request = new SailthruRequest
Please sign in to comment.
Something went wrong with that request. Please try again.