Jump to content

API call


Recommended Posts

Hi everybody,

I really hope that somebody can help. I bought a points rewards module which I installed and set correctly. At some point, the module developer asked me to put some code in order to call their API. Big problem is that I'm not a developer and they do not provide the code, the only data the provided is this: 

curl -X POST --header "partner-id: ####" 
--header "api-key: ###" 
--data "user_email=###@zinrelo.com" 
--data "points_passed=100" 
--data "activity_id=made_a_purchase"
--data "order_id=####"

"https://###websiteaddress.com"

The above command returns JSON structured like this:


{
  "data": {
          "user_email": "###@zinrelo.com",
          "last_name": "Baker",
          "first_name": "Bob",
          "activity_id": "made_a_purchase",
          "activity_name": "Made a Purchase",
          "transaction_type":"award",
          "points": 100,
          "points_status": "auto_approved",
          "created_time": "30-Mar-16 19:20:22"
  },
  "success":true
}

 

Is there a "blessed soul" that could help me do this? I'm totally lost.

Thanks for your help...I hope :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...