Out of $subject, but try not to hardcode application name(eg:- publisher).
Users tend to rename applications etc.. read it from a config at least, so
we have only one place to update.

On Wed, Feb 24, 2016 at 11:04 AM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi,
>
> I have called using below code snippet a store rest API.
>
> var serviceURL = 
> "/publisher/api/asset/get/uuid/mobileapp"+provider+"/"+name+"/"+version;
> invokerUtil.get(
>     serviceURL,
>     function (data) {
>         console.log("call succeeded...............!");
>     },
>     function (data) {
>         console.log("error occured.................!!!");
>     }
> );
>
>
> This call is done in a javascript method from emm to publisher jaggery
> app. But this call will fail with 401 unauthorised error. How do I get
> authenticate this call?
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,
UdaraR
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to