This is a topic in Highrise API

Cannot connect with curl through API

 
Avatar Susic 7 posts

Hi,

In reply to :
curl -u MyToken:X http://my-sub-domain.highrisehq.com/
curl -u MyToken:X http://my-sub-domain.highrisehq.com/login
curl -u MyToken:X http://my-sub-domain.highrisehq.com/people/1.xml
curl -u MyToken:X http://my-sub-domain.highrisehq.com/people/1
curl -u MyToken:X http://my-sub-domain.highrisehq.com/people/5645571.xml
curl -u MyToken:X http://my-sub-domain.highrisehq.com/people/5645571.xml

curl -u MyToken:X https://my-sub-domain.highrisehq.com/people/1
curl -u MyToken:X https://my-sub-domain.highrisehq.com/people/5645571.xml

I’ve got a series of :
<html><body>You are being redirected.</body></html>

where:
MyToken is a forty letters authentication token from My-Info
myurl is a the character string input after https://my-sub-domain.highrisehq.com/

I’m using Ubuntu.

When using a Firefox browser, I can access most previous pages content (when using .xml, pages are in XML format and without .xml, pages are in HTML format).

Though, I think I carefully followed those instructions : http://developer.37signals.com/highrise/index.shtml

My questions are :
- Do I need special settings to access data from API and curl ?
- Do you have any single one-line curl example (to a demo, a fake or whatever account) so that I can be certain this issue comes from me mis-using curl or from account settings ?
- Any hint on this ?

Regards

 
Avatar jonezy 99 posts

I know with the backpack api you can append the token to the url using a query string like so

http://my-sub-domain.highrisehq.com/people/1.xml?token={your token here}

maybe give that a try

Signup or login to post a reply.