Questions tagged as 'rest'

1
answer

Installing RestSharp on PCamar Projects Xamarin.Forms

How do I install RestSharp in a PCL project (Xamarin.Forms). You are giving this error while installing:    The 'RestSharp 106.3.0-alpha0002' package could not be installed.   You are trying to install this package on a project that is intend...
asked by 14.01.2018 / 01:07
1
answer

Recover Bearer Token using ClientId and ClientSecret

Good morning, I need to make a call in an API, I have ClientId and ClientSecret, but from what I understand, I can make calls using the "authorization bearer". My question is how do I turn the id and secret into this "bearer token". I'm...
asked by 18.01.2018 / 12:55
0
answers

My app aborts while trying to consume rest

It has a rest service that my android app needs to consume. For this I have to send a parameter in json format. It happens that it aborts the moment it consumes the Service . This is the code I have to consume the Service : public async Task...
asked by 11.01.2018 / 19:43
0
answers

Pass parameter in json format to consume service post in app xamarin.forms

In my App I have this method to consume the service post (still writing the method): public async Task<string> PostIndicador(string jsonValue) { client = new HttpClient(); string url = $"http://meu_ip/indicadorservice/indicadorse...
asked by 11.01.2018 / 15:58
1
answer

Cordova error while executing Ajax call

I have a Cordova 7.0.1 application that makes a request to a method from an Asp.Net MVC Web API 4.6 site. When the call is made on the device, cordova run andoid , the method execution returns error. IfyourunthebrowserdirectcallthroughanHTMLpa...
asked by 22.01.2018 / 22:22
0
answers

Consumption of API with multiple requisitions

Good morning! I need to make multiple requests in a REST API, using PHP, passing multiple parameters. I'm currently using% ur_% using a variable in the url. However, due to the processing time, the Fatal error: Maximum execution time of 3...
asked by 08.01.2018 / 13:23
1
answer

Problems consuming REST by my App

Actually I did on the service side (which is working) I'm serializing a list, but in fact it's just a single value returned. For this service I have only one information, a decimal value, but I tried to put a simple Task and a FirstOrDefault...
asked by 09.01.2018 / 12:58
1
answer

How to create a POST-type method in WCF (.NET) that receives a String parameter by URL and Stream by POST?

I tried to use it in my service but I can not get anything different from this error. Error : ExceptionDetail, provavelmente criado por IncludeExceptionDetailInFaults=true, cujo valor é: System.InvalidOperationException: Foi gerada uma...
asked by 04.12.2017 / 19:01
1
answer

How to receive data from a Rest API using Apache Camel

And how do I get the data from a REST server passing a basic authorization in the header? I have tried in many ways and it does not work, and when I test in postman , it works normally. I have tried the simple way: from(URL_API_FB...
asked by 05.12.2017 / 12:57
0
answers

How to implement the DELETE method of the HTTP protocol in a Web Service REST in Java

I'm in doubt as to how to implement the DELETE method of the HTTP web service REST JAVA protocol, when I run it says I'm running the GET method and not DELETE. // Method Called in Web Service public void remove(Promocao promocao) {...
asked by 08.11.2017 / 23:23