 
     # Initialize a field
     @accessTokenRequestOptions ?=
-      uri: MicrosoftTranslatorClient.accessTokenURI
+      uri: ACCESS_TOKEN_URI
       form:
         client_id: clientId
         client_secret: clientSecret
-        scope: MicrosoftTranslatorClient.scope
-        grant_type: MicrosoftTranslatorClient.grantType
+        scope: SCOPE
+        grant_type: GRANT_TYPE
       json: true
 
   languageToCode: (language) ->

Translator = require('./translator')
Language = null

module.exports =
class MicrosoftTranslatorClient extends Translator
  # Constants used to call Microft Translator APIs
  @accessTokenURI: 'https://datamarket.accesscontrol.windows.net/v2/OAuth2-13'
  @translateURL: 'http://api.microsofttranslator.com/V2/Http.svc/Translate'
  @scope: 'http://api.microsofttranslator.com'
  @grantType: 'client_credentials'

  accessTokenRequestOptions = null
  accessToken = null


          to: toCode
          from: fromCode
        options =
          url: "#{TRANSLATE_URL}?#{queryString.stringify(query)}"
          json: true

        new Promise((resolve, reject) =>
