Esau Romano
Posts: 0
Joined: Sun Jun 02, 2013 7:03 pm

Curl problem

I got the following curl example to connect to an API:

curl -H "Accept: application/vnd.conekta-v0.2.0+json" \
-H "Content-type: application/json" \
-u 1tv5yJp3xnVZ7eK67m4h: \
-X POST -d '{
"currency":"MXN",
"amount": 20000,
"description":"Stogies",
"reference_id":"9839-wolf_pack",
"cash": {
"type":"oxxo"
},
"details": {
"name":"Wolverine",
"email":"a href="mailto:logan@x-men.org" rel="nofollow"logan@x-men.org/a",
"phone":"403-342-0642"
}
}' https://api.conekta.io/charges

but it confuses me about how to put the " -u 1tv5yJp3xnVZ7eK67m4h"
please help me

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Curl problem

-u option allows to enter a username.

Try entering this for URL:
1tv5yJp3xnVZ7eK67m4h@https://api.conekta.io/charges

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Curl problem

Hello! Just to add - this post also might help https://getsatisfaction.com/apperyio/...

Esau Romano
Posts: 0
Joined: Sun Jun 02, 2013 7:03 pm

Curl problem

it does not work with tant change either

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Curl problem

Please post screen shots of the service Settings, Request and Test (after testing) tabs.

Esau Romano
Posts: 0
Joined: Sun Jun 02, 2013 7:03 pm

Curl problem

that does not work dude

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Curl problem

Posting screen shots doesn't work?

Esau Romano
Posts: 0
Joined: Sun Jun 02, 2013 7:03 pm

Curl problem

using 1tv5yJp3xnVZ7eK67m4h@https://api.conekta.io/charges shows an url format error

Esau Romano
Posts: 0
Joined: Sun Jun 02, 2013 7:03 pm

Curl problem

this changes the behavior, no w the server returns me a 500 error, anything else?

Return to “Issues”