Yes, it seems not supported. I have used Jaggery post() as an alternative. Thanks, Raj.
On Mon, May 16, 2016 at 8:16 PM, Geesara Prathap <gees...@wso2.com> wrote: > Hi Rajkumar, > > Just looked into the implementation of "sendOAuthRequest"[1]. Seems to be > it does support only for the GET requests only. > > So if you have an access token, please refer to this implementation[2] > how to send a request to some APIs which is secured with OAuth. > > > 1. > https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L137 > 2. > https://github.com/wso2/carbon-dashboards/blob/master/apps/portal/controllers/apis/RESTClientInvoker.jag#L105 > > Thanks, > Geesara > > > On Tue, May 17, 2016 at 12:15 AM, Rajkumar Rajaratnam <rajkum...@wso2.com> > wrote: > >> Hi Geesara, >> >> No, it doesn't help. I am asking how we can pass a payload and send a >> POST request using "sendOAuthRequest" method. I don't think it is >> documented in above link. >> >> Thanks, >> Raj. >> >> On Mon, May 16, 2016 at 7:36 PM, Geesara Prathap <gees...@wso2.com> >> wrote: >> >>> Hi Rajkumar, >>> >>> >>> I hope this[1] <http://jaggeryjs.org/documentation.jag?api=oauth> will >>> help. >>> >>> 1. http://jaggeryjs.org/documentation.jag?api=oauth >>> >>> Thanks, >>> Geesara >>> >>> >>> On Mon, May 16, 2016 at 7:50 PM, Manuranga Perera <m...@wso2.com> wrote: >>> >>>> looping >>>> >>>> On Sat, May 14, 2016 at 2:45 PM, Rajkumar Rajaratnam < >>>> rajkum...@wso2.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> I am talking about [1]. >>>>> >>>>> Couldn't find any documentation or samples on this. How do we call >>>>> "sendOAuthRequest" method of Jaggery's "OAuth" module with POST payload? >>>>> >>>>> [1] >>>>> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java#L141-L192 >>>>> >>>>> Thanks, >>>>> Raj. >>>>> >>>>> -- >>>>> Rajkumar Rajaratnam >>>>> Committer & PMC Member, Apache Stratos >>>>> Software Engineer, WSO2 >>>>> >>>>> Mobile : +94777568639 >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> With regards, >>>> *Manu*ranga Perera. >>>> >>>> phone : 071 7 70 20 50 >>>> mail : m...@wso2.com >>>> >>> >>> >>> >>> -- >>> Geesara Prathap Kulathunga >>> Software Engineer >>> WSO2 Inc; http://wso2.com >>> Mobile : +940772684174 >>> >>> >> >> >> -- >> Rajkumar Rajaratnam >> Committer & PMC Member, Apache Stratos >> Software Engineer, WSO2 >> >> Mobile : +94777568639 >> > > > > -- > Geesara Prathap Kulathunga > Software Engineer > WSO2 Inc; http://wso2.com > Mobile : +940772684174 > > -- Rajkumar Rajaratnam Committer & PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev