Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

I to create a Rest service with -u parameter in request

Hi

I have a Rest API of Twilio for sending sms. I am creating a Rest Service to invoke this API. Given below is the curl command :
curl -X POST 'https://api.twilio.com/2010-04-01/Acc...' \
-d 'From=%2B1------' \
-u AC723e7b9b8dd937cab7f249550ae73f71:{AuthToken}

Pls tell me how will i add '-u; parameter in my service.

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

I to create a Rest service with -u parameter in request

Hello! Working on it.

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

I to create a Rest service with -u parameter in request

Please try with Authorization parameter, this post should help https://getsatisfaction.com/apperyio/...

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

I to create a Rest service with -u parameter in request

Hi Maryna

I have tried Authorization parameter but still I m getting Unauthorized error.
But when i m trying it independently form curl editor it is working fine.

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

I to create a Rest service with -u parameter in request

Hello! Could you please post screenshots from Service Settings and Request parameters tab?

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

I to create a Rest service with -u parameter in request

Hi i have added images of both settings and request param tabs
pls have a look
Image Image

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

I to create a Rest service with -u parameter in request

Hi
I just removed Appery.io.Proxy and now it is working fine

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

I to create a Rest service with -u parameter in request

Ok, glad it's working! Thank you for update!

Return to “Issues”