     )
 
   createUser: (accessToken, callback) ->
-    @ajaxPost("https://#{@hostname}/games/#{@appId}/users.json",
+    @ajaxPost("#{@scheme}://#{@hostname}/games/#{@appId}/users.json",
       {'access_token': accessToken, 'api_key': @udid},
       (statusCode) =>
         switch statusCode

    @appSecret = appSecret
    @status = Carrot.Status.Unknown
    @hostname = hostname or "gocarrot.com"

  ajaxGet: (url, callback) ->
    if @request

    true

  validateUser: (callback) ->
    @ajaxGet("#{@scheme}://#{@hostname}/games/#{@appId}/users.json?id=#{encodeURIComponent(@udid)}",
      (statusCode) =>
        switch statusCode
          when 200
