highrise

Highrise Custom Fields

余生长醉 提交于 2020-01-06 18:13:38
问题 I am hoping someone can help me out with this. I am trying to use the Highrise API to insert some data, but for some reason I can not get the custom fields to insert. When I submit the curl request, all of the data except for the custom fields gets added and there is no error message. Below is the XML that is being posted: <person> <first-name>Testing</first-name> <last-name>Account</last-name> <contact-data> <email-addresses> <email-address> <address>BigB@boom.com</address> <location>Work<

High rise API giving a 'No first name' error when adding a person, even though its provided

怎甘沉沦 提交于 2019-12-11 20:11:31
问题 I'm attempting to create a new person using HighRise's API: curl -u xxxxxxx:X -XPOST -d '<?xml version="1.0" encoding="UTF-8"?> <person> <first-name>Test</first-name> <last-name>Acct</last-name> <title>CEO</title> <company-name>Test inc</company-name> <contact-data> <email-addresses> <email-address> <address>a@b.com</address> <location>Home</location> </email-address> </email-addresses> <phone-numbers> <phone-number> <number>1111</number> <location>Home</location> </phone-number> </phone

Set site/user fields in ActiveResource

时光毁灭记忆、已成空白 提交于 2019-12-02 05:20:27
问题 I am building a sinatra app that will use Highrise CRM gem to access Highrise data. This gem is based on ActiveResource class. I want to set site, user fields for every request. I followed suggestion posted here - Is it thread safe to set Active Resource HTTP authentication on a per-user basis?. I add code (shown below) and I get an error. Can anyone help understand this error and how to fix it. class ActiveResource::Base class << self %w(site user).each do |attr| define_method(attr) do

Set site/user fields in ActiveResource

淺唱寂寞╮ 提交于 2019-12-02 01:01:58
I am building a sinatra app that will use Highrise CRM gem to access Highrise data. This gem is based on ActiveResource class. I want to set site, user fields for every request. I followed suggestion posted here - Is it thread safe to set Active Resource HTTP authentication on a per-user basis? . I add code (shown below) and I get an error. Can anyone help understand this error and how to fix it. class ActiveResource::Base class << self %w(site user).each do |attr| define_method(attr) do Thread.current["active_resource.#{attr}"] end define_method("#{attr}=", val) do Thread.current["active