Pete Nellmapius
Posts: 0
Joined: Thu Sep 05, 2013 1:24 pm

curl Implementation (How to use)

I want to use these cURL's to access an API from a third party.
I don't know how to translate these cUrl's to a RestService in Appery

1) a Simple one:
curl https://api.easypost.com/v2/addresses... \
-u {My API KEY}:

2) Slightly more complex:
curl -X POST https://api.easypost.com/v2/addresses \
-u {YOUR API KEY}: \
-d 'address[name]=Dr. Steve Brule' \
-d 'address[street1]=179 N Harbor Dr' \
-d 'address[city]=Redondo Beach' \
-d 'address[state]=CA' \
-d 'address[zip]=90277' \
-d 'address[country]=US' \
-d 'address[email]=a href="mailto:dr_steve_brule@gmail.com" rel="nofollow"dr_steve_brule@gmail.com/a'

Is there a video or Tutorial that would explain how to use this.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

curl Implementation (How to use)

Hi Pete -

Sorry, not sure I understand what do you mean by "to translate these cUrl's to a RestService in Appery"?

With cURL commands you can access your collections in Appery.io database.
For more understanding, please check this post here: http://unix.stackexchange.com/questio...

And if you want to create a REST service in Appery.io, please refer to our documentation here: https://devcenter.appery.io/documenta...

Hope that helps.

Pete Nellmapius
Posts: 0
Joined: Thu Sep 05, 2013 1:24 pm

curl Implementation (How to use)

The above 2 Curls are given to me from a third party Shipping Company as samples.
From the above I need to run a RestService to execute the curl but don't know how to use it in Appery.
I thought I could create a New Rest service and fill in the
Settings 'URL', 'Method' etc
Request 'Headers', 'Query String'
etc but don't know what to put where.
I thought there would be a tutorial or Video showing how it is done.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

curl Implementation (How to use)

Pete - in this case perhaps you should ask them for help how to create an REST from their cURL commands.

Pete Nellmapius
Posts: 0
Joined: Thu Sep 05, 2013 1:24 pm

curl Implementation (How to use)

Ok will do
Thanks

Return to “Issues”