Questions tagged [rest-client]

REST Client is an open-source HTTP and REST client for Ruby.

REST Client is an open-source HTTP and REST client for Ruby originally created by Adam Wiggins and now maintained by Andy Brody. It was inspired by Sinatra's micro-framework style of specifying actions: get, put, post, delete.

Github

The code repository and issue tracker can be found on github:

https://github.com/rest-client/rest-client

Resources

940 questions
3
votes
1 answer

`Required session does not exist` error while using REST api of Quickblox

I am using REST api of Quickblox. but everytime , i am getting response : {"errors": { "base": ["Required session does not exist"] }} And i am using below api : url : http://api.quickblox.com/users.json Data & header is : curl -X POST \ -H…
3
votes
2 answers

Does Rest Client support NTLM Auth?

Can Rest Client do NTLM authentication? I didn't see any options in the documentation for authentication types: require 'rest_client' resource = RestClient::Resource.new 'http://website', :auth_type => 'ntlm', :user => 'USERNAME', :password =>…
nictrix
  • 1,483
  • 1
  • 17
  • 34
3
votes
2 answers

How to get AutoRest to split out API's by controller

Right now I am using: AutoRest\AutoRest.exe -Input %jsonUrl% -Namespace %projectName%ClientAutoGen -OutputDirectory %projectName%Client To generate my ASP.NET Core Rest Client. The annoyance is that AutoRest creates a single file/class for all of…
Serj Sagan
  • 28,927
  • 17
  • 154
  • 183
3
votes
3 answers

Map containing Retrofit API interface method from ServiceHelper

I am trying to follow the REST client implementation pattern described in the Google I/O Dobjanschi video here and am using Retrofit2 for the REST API calls. Based on the REST client pattern described above I introduced a ServiceHelper layer that…
Bootstrapper
  • 1,089
  • 3
  • 14
  • 33
3
votes
1 answer

Cannot read big json response from Ruby

I have two projects which I call them Server and Client projects. In the Server side, I'm using a web service. I send a certain request to this web service, and it returns me a very long JSON response. Then I can do some business logic, and return…
esmrkbr
  • 275
  • 2
  • 7
3
votes
1 answer

CURL to RestClient --user option

I am sure this is a very easy conversion but I just can't make this curl --user secret_key: https://api.chargeio.com/v1/transactions?page=1&page_size=5&order_by=-created work in RestClient because can't figure out what is the equivalent of --user…
Allen King
  • 2,372
  • 4
  • 34
  • 52
3
votes
1 answer

How to add or call the java code from HTML File?

I have started writing HTML File. Which consists of dropdowns, The Second dropdown will be dependent on 1st dropdown selection and the 3rd dropdown will be dependent on 2nd dropdown so on. I'm getting the dropdown values through a httpclient…
Pavan
  • 135
  • 3
  • 12
3
votes
1 answer

Testing RESTful Web Services (RESTClient) on Android Studio

I was going through the IntelliJ IDEA Plugins where I found this RESTfull Web service testing client Testing RESTful Web Services But I could not get it listed in the Plugin directory of Android Studio. Could you please guide me how to add it to the…
Vinayak Bevinakatti
  • 40,205
  • 25
  • 108
  • 139
3
votes
1 answer

getting BAD REQUEST in spring rest multipart image upload api

Here is a very dramatic situation for me, I don't what mistake supplying payload to rest client, because of which I am getting "400: BAD REQUEST" exception. Below is the code please help me solve it, @RequestMapping(value = "/uploadQuestionImg",…
Shamim Ahmad
  • 808
  • 3
  • 22
  • 40
3
votes
0 answers

Unable to post information to asp.net MVC controller using postman

I am trying to send JSON to asp.net MVC controller. While I am able to call the endpoint using postman, the data which is posted is going an null. This is how my controller looks: public class DataController : Controller { // //…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
3
votes
4 answers

encoder function for multipart/form-data in groovy

I need to form a 'multipart/form-data' REST request with jpeg image and JSON file as the content.I am stuck with encoding the 'multipart/form-data' as a zip file. Can someone tell me, how I can achieve this with groovy RESTClient? I could not find…
3
votes
2 answers

RestClient bug on response redirect encoding

When trying to get this page: resp = RestClient.get("http://www.radios.com.br/aovivo/XXXX/24924") I get this error: URI::InvalidURIError: bad URI(is not URI?): http://www.radios.com.br/aovivo/Radio-Gospel-Ajduk?s/24924 from…
Daniel Cukier
  • 11,502
  • 15
  • 68
  • 123
3
votes
1 answer

Get HTTP error RestClient::Unauthorized (401 Unauthorized): Using 'rest-client' gem in rails

i have use the Ruby Gem rest-client for request on a url of a website. and i get the following error... RestClient::Unauthorized (401 Unauthorized): app/controllers/api/v1/channels_controller.rb:199:in `streaming_link' help me to fix it. my…
Faysal
  • 47
  • 1
  • 9
3
votes
2 answers

Pocket API Authorization: Forbidden

I'm testing out RoR by building a Rails app with Pocket API, and I have to authorize the user. For HTTP requests, I'm using https://github.com/rest-client/rest-client library. The first step, obtaining a request token works fine: require…
Emir
  • 762
  • 2
  • 8
  • 22
3
votes
1 answer

413 Request Entity Too Large in wcf service when uploading large image file

i have created wcf Service in which i am receiving Base64 string and converting base64 string to image to store in my project. but when i am calling my wcf service method from rest client like this i am getting error like this: 413 Request Entity…
user4155786