This is a topic in Highrise API

Basic Help

 
Avatar ahhsumx 3 posts

Hey, I’ve looked through this forum for help a few times and have been decently unsuccessful in finding basic help on things, so I’m here now to ask for some.

I’ve never used an API before and I’m trying to use this through PHP. I’ve gotten it to the point where I can get information from all different categories and stuff, but everytime I try to post information to it (in particular, I’m trying to get it to create a new contact) I just get a “First name can’t be blank” error, so I’m assuming I simply don’t know how to write the XML string for it.

Here’s the jist of what I’m doing:
+ I’m using HTTP_REQUEST to send
+ I’m setting the method to HTTP_REQUEST_METHOD_POST
+ I’m setting the header to Content-Type: xml/text (I’ve tried application/xml but then it won’t output the results for me, it just throws server errors)
+ I’m adding the following XML to the post data: “<request><person><first-name>Joe</first-name><last-name>Schmoe</last-name></person></request>”
+ Finally I’m sending the request.

If someone could fill me in on any tips for fixing this up that’d be great, if you need some actual code let me know, but I figure I’m missing something simple I just don’t know about due to lack of experience.

Thanks in advance for any help/tips/assistance.

 
Avatar ahhsumx 3 posts

Okay, well no one got back to me over night, but through some further checking out it seems to me that HTTP_REQUEST doesn’t like to send XML and that is probably whats causing all of my errors.

So, if someone could tell me this is true and tell me if there is actually a way of using this API strictly through PHP (not getting into Javascript/AJAX stuff) that’d be awesome.

 
Avatar ahhsumx 3 posts

All problems solved, considering there were no responses I suppose nobody really cares about what happened and whatnot. But you can do it strictly PHP via HTTP_REQUEST, let the record show.

 
Avatar Aaron Brockh... 2 posts

I’m interested in how you did this with php

Signup or login to post a reply.