API3
grantmc09 at June 8th, 2015 17:11 — #1
I can't seem to get the nextactions()
, unassignedactions()
, nextaction()
, or completedactions()
associated resources to load for a specific contact. I've tried these two URLs in the API Browser:
contacts/{user_id}.json?fields=all,nextactions(all)
and
contacts/{user_id}.json?fields=all,nextactions()
Neither one loads the actions for the contact, however.
pete_onepagecrm at June 8th, 2015 17:34 — #2
Hi Grant, you've spotted a really strange one here - it looks like our documentation is being parsed incorrectly somehow.
The correct calls should be next_actions()
, next_action()
or completed_actions()
. The all important underscore is being removed somehow.
The unnassignedactions()
doesn't apply at all - in the documentation source this is actually commented out!
It seems to be some issue with how jekyll is processing the markdown. I'll have to look into it and update the docs ASAP.
In the meantime, make a call like this:
contacts/{user_id}.json?fields=all,next_actions()
Can you tell us a bit about what you're working on?
pete_onepagecrm at June 8th, 2015 17:41 — #3
Ok @grantmc09 the docs have been updated now.
In case you're interested, we use Jekyll to create our documentation site. it seems to have been the markdown processing that caused this to happen - an underscore in markdown means the text should be in italics. I just saved the file as html instead.
grantmc09 at June 8th, 2015 21:14 — #4
That makes sense. I use Jekyll for my personal site so I'm somewhat familiar with it.
The company I work for is using OnePageCRM to track prospective clients. I am writing an import for when those prospects become actual clients that need to be in our system.
grantmc09 at June 8th, 2015 21:14 — #5
So I may be posting a bit over the next week if I catch anything else.
pete_onepagecrm at June 9th, 2015 03:44 — #6
Thanks Grant, it's great to have another pair of eyes who's willing to submit issues!
What language are you working in?
grantmc09 at June 9th, 2015 10:03 — #7
I'm using Python. We do a lot of Django/Python development.
Powered by Discourse, best viewed with JavaScript enabled