ignaciovazquez / highrise-php-api Goto Github PK
View Code? Open in Web Editor NEWA full featured PHP API Client for 37signals' Highrise
Home Page: highrise-php-api
A full featured PHP API Client for 37signals' Highrise
Home Page: highrise-php-api
I am trying to set a custom field using the following:
$person->setCustomField("Field Name", $value);
The issue is that this line causes Highrise to report back with error code 500. I'm not sure what the issue is, but nothing I do makes custom fields behave appropriately.
The librray seems to be outputting the following errors......
I have asked HighRise support directly but they blame the library.
Fatal error: Uncaught exception 'Exception' with message 'Namedgroup is not a valid visibility permission. Available visibility permissions: Everyone, Owner' in /home/winkworth/public_html/api/highrise/includes/HighriseEntity.class.php:503 Stack trace: #0 /home/winkworth/public_html/api/highrise/includes/HighriseEntity.class.php(310): HighriseEntity->setVisibleTo(Object(SimpleXMLElement)) #1 /home/winkworth/public_html/api/highrise/includes/HighrisePerson.class.php(54): HighriseEntity->loadFromXMLObject(Object(SimpleXMLElement)) #2 /home/winkworth/public_html/api/highrise/includes/HighriseAPI.class.php(520): HighrisePerson->loadFromXMLObject(Object(SimpleXMLElement)) #3 /home/winkworth/public_html/api/highrise/includes/HighriseAPI.class.php(358): HighriseAPI->parseListing('/people.xml') #4 /home/winkworth/public_html/api/highrise/import.php(58): HighriseAPI->findAllPeople() #5 {main} thrown in /home/winkworth/public_html/api/highrise/includes/HighriseEntity.class.php on line 503
I turned on debug and everything returns normally, so I don't know why I get this:
I've traced it to the save function in notes. All I am calling is $notes = $person->getNotes();
Please help as I need to get this working!
Fatal error: Uncaught exception 'Exception' with message 'API for Note returned Status Code: 500 Expected Code: 200' in /home/moh/public_html/extra/include/highrise.php:138 Stack trace: #0 /home/moh/public_html/extra/include/highrise.php(902): HighriseAPI->checkForErrors('Note', 200) #1 /home/moh/public_html/extra/include/highrise.php(1718): HighriseNote->save() #2 /home/moh/public_html/extra/include/highrise.php(1737): HighrisePerson->addNote(Object(HighriseNote)) #3 /home/moh/public_html/extra/extra.php(103): HighrisePerson->getNotes() #4 /home/moh/public_html/extra/index.php(27): require_once('/home/moh/publi...') #5 {main} thrown in /home/moh/public_html/extra/include/highrise.php on line 138
Is accessing custom fields for people/companies using this library possible?
the findPeopleSinceTime method needs to be updated.
It should be:
/people.xml?since=
not
/people/search.xml?since=
Thanks.
$person = new HighrisePerson($highrise);
$person->setFirstName("John");
$person->setLastName("Doe");
$person->setCompanyName("J & J Company");
$person->addEmailAddress("[email protected]");
$address = new HighriseAddress();
$address->setStreet("165 Test St.");
$address->setCity("Glasgow");
$address->setCountry("Scotland");
$address->setZip("GL1");
$person->addAddress($address);
$person->save();
Above code throws exception due to XML Parse fails & It should be fix by replacing "&" with "& amp;"
I have added space before "amp" because of HTML preview.
$person = new HighrisePerson($highrise);
$person->setFirstName("John");
$person->setLastName("Doe");
$person->addEmailAddress("[email protected]");
$address = new HighriseAddress();
$address->setStreet("165 Test St.");
$address->setCity("Glasgow");
$address->setCountry("Scotland");
$address->setZip("GL1");
$person->addAddress($address);
$person->save();
This code doesn't work for me? (If I leave the HighriseAddress out it works)
Hi,
I integrated Highrise api into my application successfully. from my application i can add a person using Highrise api. But when i am adding a new person i just want to save my custom fields also for that person. but in api, its not mentioned anything about custom fields like subject_datas.
so can anyone please help me to solve this issue.
Thanks in Advance.
Diego
$address->setStreet("165 Test St.");
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
in XML, ampersands and several other characters need to be escaped before they are added to an XML document. For example, if my job title is "Sales & Marketing Director" when the API attempts to send the XML document to the HighriseAPI server, 37signals will return a 500 http status because the XML is not well formed.
Simply replacing & with & # 3 8 ; will fix many cases, but not all
I got error while inserting address for people.I am using highrise php api
$person = new HighrisePerson($highrise);
$person->setFirstName("John");
$person->setLastName("Doe");
$person->addEmailAddress("[email protected]");
$address = new HighriseAddress();
$address->setStreet("165 Test St.");
$person->addAddress($address);
$person->save();
Not working
Thanks for the hard work on this class!
Can you tell me how I can work with Custom Fields with Highrise?
I'd like to add 2 simple custom fields to a person (both strings).
Thanks!
I am trying to create a task from the Highrise-PHP-Api which I have successfully managed ,but I am now trying to make the script making the api call to be excecuted from a zendesk trigger but somehow every other bit of the code is working just fine except the api request (i.e xml request to create the task) any ideas as to why this is happening
Support for custom fields would be fantastic. May look into adding this myself.
Hi Friends I am using setCustomfiled.
My requrement is to update its field value
ie Email='Valid'
when i run again it shoud show Email='Invalid'
But Currently its giving me Email='Valid' and Email='Invalid' 2 times
How to resolve this issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.