Giter Site home page Giter Site logo

highrise-php-api's People

Contributors

brycied00d avatar ignaciovazquez avatar julien731 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

highrise-php-api's Issues

Custom Fields Don't Work...

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.

issues when calling findAllPeople

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

Having issues with reading notes after creating them

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

findPeopleSinceTime url changed

the findPeopleSinceTime method needs to be updated.
It should be:
/people.xml?since=
not
/people/search.xml?since=

Thanks.

In setCompanyName function issue with "&" special character.

$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.

@ignaciovazquez

Example code doesn't work

$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)

save custom fields from my application

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

toXML methods can generate invalid XML

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

Working with Custom Fields

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!

zendesk trigger

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

How to Update Custom Field Value?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.