           to: toCode
           from: fromCode
         options =
-          url: "#{MicrosoftTranslatorClient.translateURL}?#{queryString.stringify(query)}"
+          url: "#{TRANSLATE_URL}?#{queryString.stringify(query)}"
           json: true
 
         new Promise((resolve, reject) =>


    # Initialize a field
    @accessTokenRequestOptions ?=
      uri: MicrosoftTranslatorClient.accessTokenURI
      form:
        client_id: clientId
        client_secret: clientSecret
        scope: MicrosoftTranslatorClient.scope
        grant_type: MicrosoftTranslatorClient.grantType
      json: true

  languageToCode: (language) ->

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

# Constants used to call Microft Translator APIs
ACCESS_TOKEN_URI = 'https://datamarket.accesscontrol.windows.net/v2/OAuth2-13'
TRANSLATE_URL = 'http://api.microsofttranslator.com/V2/Http.svc/Translate'
SCOPE = 'http://api.microsofttranslator.com'
GRANT_TYPE = 'client_credentials'

module.exports =
class MicrosoftTranslatorClient extends Translator
  accessTokenRequestOptions = null
  accessToken = null

