message: Makes OAuthLib  IOCd
diff: @@ -20,10 +20,16 @@ export interface IOAuthClient {
  put<T>(endpoint: string, body: object, args?: any): Promise<T>;
  }
  +export interface IHttpError {
  + status: number;
  + body: string;
  + error: Error;
  +}
  +
  export class OAuthClient implements IOAuthClient {
  - private oauth: typeof OAuth;
  - constructor(private options: IOAuthClientConfiguration) {
  + constructor(private options: IOAuthClientConfiguration, private oauth?: typeof OAuth) {
  + if (!this.oauth) {
  this.oauth = new OAuth(
  OAUTH_BASE + OAUTH_REQUEST_TOKEN_PATH, // requestTokenUrl
  OAUTH_BASE + OAUTH_ACCESS_TOKEN_PATH, // accessTokenUrl
  @@ -40,6 +46,8 @@ export class OAuthClient implements IOAuthClient {
  );
  }
  + }
  +
  public async get<T>(endpoint: string, args?: any): Promise<T> {
  // this.checkAuthentication();
  @@ -53,6 +61,9 @@ export class OAuthClient implements IOAuthClient {
  if (err) {
  console.log(`There was an err <${httpResponse.statusCode}>`);
  + // let toReturn: IHttpError = {
  + // statusCode = httpResponse.statusCode
  + // };
  reject(err);
  } else {
  const toReturn = JSON.parse(data) as T;
  