getSurvey response suggests that whitelisted IP should work in place of auth token, but whitelist not working

Options
When I make a GET call from a server to getSurvey, I receive the error message "Error: The requested method is not allowed ... Method must come from a white-listed IP address or provide an auth token." In the Configure API to allow server access section of the Open API configuration page, I have added my IP address to the white list. I still receive this error message.


Should this method accept requests from a whitelisted IP, and if so, what can I do to make this work?
Tagged:

Comments

  • We've all been exactly here! The API responses are often pretty confusing or outright inaccurate. (Same goes for the documentation.)


    The authToken really has to do with setting up a user session. You will almost always need to provide that. See here for a nice explanation: https://community.blackbaud.com/forums/viewtopic/100/12053?post_id=40089#p40089


    If you are working on a pagebuilder page you can just use the s-tag right in the middle of your code. auth: [[S86]]


    Otherwise you can make an API call to retrieve a token, and then use that in your getSurvey call.


    But you should really be using Noah's Luminate Extend which handles all this plumbing for you. https://github.com/noahcooper/luminateExtend


    Noah's on here all the time, and is still keeping this library current.


    BPM

Categories