Please provide solution.

On Thursday, December 3, 2015 at 4:07:23 PM UTC+5:30, [email protected] 
wrote:
>
> Hi,
>
> I am not getting error but there is something wrong in my code to send 
> parameters.
> Anybody tell me that how to use patch method.Here is my code:
> jsonArr is array variable like jsonArr =[1,60002];
>
> but in console parameters it shows like this 1,6002 and this should be 
> array.
>
>
> var parameters = 
> encodeURI("list['add_company_ids']="+jsonArr+"&list['name']="+wishlist_name+"&api_key="+api_key);
> $http({
> url: '
> https://apistage.dealsignal.com/api/v0/company_watchlists/'+wishlist_id+'?'+parameters
> ,
> method: 'PATCH',
> headers: {'Content-Type': 'application/x-www-form-urlencoded'}
> })
> .success(function (response) {
> }).
> error(function (response) {
> return false; 
> });
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to