爲rest_client gem有以下示例中的文件: RestClient.get('http://my-rest-service.com/resource'){ |response, request, result, &block|
case response.code
when 200
p "It worked !"
response
when
public class helloWorldClient {
public static void main(String[] args) {
helloWorldClient crunchifyClient = new helloWorldClient();
crunchifyClient.getResponse();
}
priv
我使用REST ::客戶端創建一個POST請求,並不斷收到以下錯誤: 迴應:不是在一個標量引用/ nethome/perl5的/ lib目錄/ perl5的// LWP /協議/ http.pm線254,< IFH>線1. 我的代碼片斷: use warnings;
use diagnostics;
use strict;
use JSON::MaybeXS;
use REST::Clie