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
-1
votes
1 answer

Send RestClient through Function Azure VS Code

I am trying to make a post request with c# through the Azure HttpTrigger function. Only that when executing it sends me thousands of errors. Can someone help me here? This is my code: using System; using System.IO; using…
-1
votes
1 answer

Ruby Restclient different double point or astrophobe and is order important

i am new to ruby RestClient. i have search many example of this restclient and in docruby. For me is important while using ruby restclient, to get the data very fast. But some are not answers, this is why i would like to question to you all. i am…
goethe
  • 35
  • 8
-1
votes
2 answers

How to refactor ruby rest-client get method

I'm using Rubys rest-client gem to make a call to Google API and want to shorten the url part. Current code: class GoogleTimezoneGetter def initialize(lat:, lon:) @lat = lat @lon = lon @time_stamp = Time.new.to_i end def…
Falko
  • 995
  • 11
  • 21
-1
votes
1 answer

C# Request with RestClient to get access_token - don't understand why it IS working

I finally managed to recieve a valid (302) response from a RestRequest pasted below, but I don't know why. Its all about the line with the "Autorisation" and the given Hash: request.AddHeader("Authorization", "Basic…
Frank W
  • 1
  • 1
-1
votes
1 answer

API call successfully from external client but not from c#

I need to call client API-HTTPS (GET) with some specific headers Accept:application/json,application/vnd.error+json Date:2018-10-03T06:52:48Z Authorization: In this scenario when I try to call it from client like Postman or Advanced REST…
-1
votes
1 answer

How to use RestClient to get bearer token generation?

I have to generate the bearer token using token end point in azure how can I do that using RESTClient in C# .NET?
Shrad_k
  • 86
  • 2
  • 10
-1
votes
1 answer

rest-client gem with ruby

So I am using rest-client gem and am able to get a response from my API request and the response is as follows: {"Invoice"=>[{"ReqKey"=>"9", "RequestID"=>"9B06C27E61BE4B8DB6B9", "SyncGuid"=>"D98013521663AE4E8251A327B0032A2C"}, {"ReqKey"=>"12",…
Ken
  • 1
  • 1
-1
votes
2 answers

A JSONObject text must begin with '{' at character 1 of in Talend Job

I'm trying to get data from github with this talend job, But i couldn't get the data, because it is showing some error. A JSONObject text must begin with '{' at character 1 of
user3114967
  • 639
  • 5
  • 15
  • 38
-1
votes
1 answer

Using Rest Client to post a curl in rails

I want to traduce this curl into rest client sintax: curl https://sandbox-api.openpay.mx/v1/mzdtln0bmtms6o3kck8f/customers/ag4nktpdzebjiye1tlze/cards \ -u sk_e568c42a6c384b7ab02cd47d2e407cab: \ -H "Content-type: application/json" \ -X POST…
-1
votes
2 answers

Once Again NgFor only supports binding to Iterables such as Arrays

As many before me, I have this error : Error: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays. I was trying many solutions like : error display in *ngfor json…
VANILKA
  • 634
  • 1
  • 13
  • 32
-1
votes
1 answer

'rest_client' vs 'rest-client' error

Trying to use rest-client gem in ruby but keep getting error: "WARNING: The rest_client gem is deprecated and will be removed from RubyGems. Please use rest-client gem instead." Even though my code uses 'rest-client' and not…
Sam Sweeney
  • 85
  • 2
  • 10
-1
votes
1 answer

How to Deal with transactions in RESTful web services?

A REST client goes through a sequence of steps with a server in a flow. The client would like to cancel the flow and undo all the changes done to the data in that flow. For example, we have a below method. It has three different steps in it. First…
Narendra Verma
  • 2,372
  • 6
  • 34
  • 61
-1
votes
1 answer

Pull .txt file information into RESTful API URL [Ruby]

So I am fairly new to Ruby and this may very well be answered elsewhere but I have searched high and low with nothing to show. I am defining a module for a RESTful API framework and mostly things have gone well apart from trying to get a string from…
-1
votes
3 answers

Use Hash value on url with Nokogiri or RestClient

I have a url like : http://172.0.0.1:22230/test.action?data={"foo":"bar","joe":"doe"}&sign=x6das In my browser I can get data from that url, but if I'm use…
itx
  • 1,327
  • 1
  • 15
  • 38
-1
votes
2 answers

Running a URL in Advanced Rest Client from a java program

I have a URL of an API which is working fine if run in advanced rest client of chrome directly. I want this URL to trigger from my own REST API code which should run it in advanced rest client and stores the result in variable. How can I do this?
1 2 3
62
63