From d1c7359b962e86a2a5744f2fedbed7cb77e05f67 Mon Sep 17 00:00:00 2001 From: Hao Huang Date: Thu, 26 Oct 2017 15:13:09 -0400 Subject: [PATCH 1/2] change http-method GET to POST on api.Screenboard#share --- lib/dogapi/v1/screenboard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dogapi/v1/screenboard.rb b/lib/dogapi/v1/screenboard.rb index 147637b7..a592204c 100644 --- a/lib/dogapi/v1/screenboard.rb +++ b/lib/dogapi/v1/screenboard.rb @@ -28,7 +28,7 @@ def delete_screenboard(board_id) end def share_screenboard(board_id) - request(Net::HTTP::Get, "/api/#{API_VERSION}/screen/share/#{board_id}", nil, nil, false) + request(Net::HTTP::Post, "/api/#{API_VERSION}/screen/share/#{board_id}", nil, nil, false) end def revoke_screenboard(board_id) From 8ee446431c1c0f6d22e6b0aaf524381b51c88fd5 Mon Sep 17 00:00:00 2001 From: Hao Huang Date: Thu, 26 Oct 2017 15:35:43 -0400 Subject: [PATCH 2/2] fix test --- spec/integration/screenboard_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/screenboard_spec.rb b/spec/integration/screenboard_spec.rb index f43c6bb5..5a48d370 100644 --- a/spec/integration/screenboard_spec.rb +++ b/spec/integration/screenboard_spec.rb @@ -50,7 +50,7 @@ describe '#share_screenboard' do it_behaves_like 'an api method', :share_screenboard, [BOARD_ID], - :get, "/screen/share/#{BOARD_ID}" + :post, "/screen/share/#{BOARD_ID}" end describe '#revoke_screenboard' do