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) 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