Getting ERROR trying to connect to API

oooooo Member
in Bugs & Feature Requests edited August 2011
i have the following URL that i am trying to access:
https://[myDomain].foxycart.com/api?api_token=[myAPIKey]&api_action=customer_get&customer_email=[myEmail]&customer_password=[myPassword]

but i keep getting back the following error:
<?xml version="1.0" encoding="UTF-8"?>
<foxydata>
<result>ERROR</result>
<messages>
<message>Required API Token Missing (api_token)</message>
<message>Required API Action Missing (api_action)</message>
</messages>
</foxydata>

any suggestions on what i might be doing wrong ?

UPDATE: I figured it out . .was doing a GET instead of a POST (which i see is required)
Comments
  • fc_adamfc_adam FoxyCart Team
    Glad you got it sorted @ooo, thanks for posting your solution too
  • TulikaSTulikaS Member
    edited May 2014
    Hi,

    I am getting the same error. Have ensured that the code is POST. Any other reasons why I would be getting this issue?
  • fc_adamfc_adam FoxyCart Team
    @TulikaS,

    Without seeing your code - it's a bit hard for us to help unfortunately. Could you email the code you're working with to help [at] foxycart.com - and we'll take a closer look. Ultimately, if you're getting that error it means that our system couldn't see the api_key or api_token values in the post values.
Sign In or Register to comment.