class ZuoraConnect::AppInstanceBase
def updateOption(optionId, value)
def updateOption(optionId, value) if self.access_token && self.refresh_token if self.api_version == "v1" return HTTParty.get(ZuoraConnect.configuration.url + "/api/#{self.api_version}/tools/application_options/#{optionId}/edit?value=#{value}",:basic_auth => auth = {:username => self.username, :password => self.password}) else return HTTParty.get(ZuoraConnect.configuration.url + "/api/#{self.api_version}/tools/application_options/#{optionId}/edit?value=#{value}",:body => {:access_token => self.username}) end else return false end end