def signin(email, password)
      result = self.post "/user/signin/login", {
        :email => email,
        :pwd => password,
        :service => "nudge"
      }
      if !result['error'].nil? && !result['error']['msg'].nil?
        msg = result['error']['msg']
      else
        msg = "Error logging in"
      end
      raise ApiError.new(400, "error", msg) if result['token'].nil?
      @auth[:token] = result['token']
      @auth[:xid] = result['user']['xid']
      @auth[:user] = result['user']
      return_response result
    end
def signin(email, password)
      result = self.post "/user/signin/login", {
        :email => email,
        :pwd => password,
        :service => "nudge"
      }
      if !result['error'].nil? && !result['error']['msg'].nil?
        msg = result['error']['msg']
      else
        msg = "Error logging in"
      end
      raise ApiError.new(400, "error", msg) if result['token'].nil?
      @auth[:token] = result['token']
      @auth[:xid] = result['user']['xid']
      @auth[:user] = result['user']
      return_response result
    end
API methods
 See http://eric-blue.com/projects/up-api/ for more information