class DogapiDemo::V1::ScreenboardService
Constants
- API_VERSION
Public Instance Methods
create_screenboard(description)
click to toggle source
# File lib/dogapi-demo/v1/screenboard.rb 10 def create_screenboard(description) 11 12 begin 13 params = { 14 :api_key => @api_key, 15 :application_key => @application_key 16 } 17 18 body = description 19 20 request(Net::HTTP::Post, "/api/#{API_VERSION}/screen", params, description, true) 21 rescue Exception => e 22 suppress_error_if_silent e 23 end 24 end
delete_screenboard(board_id)
click to toggle source
# File lib/dogapi-demo/v1/screenboard.rb 68 def delete_screenboard(board_id) 69 begin 70 params = { 71 :api_key => @api_key, 72 :application_key => @application_key 73 } 74 75 request(Net::HTTP::Delete, "/api/#{API_VERSION}/screen/#{board_id}", params, nil, false) 76 rescue Exception => e 77 suppress_error_if_silent e 78 end 79 end
get_all_screenboards()
click to toggle source
# File lib/dogapi-demo/v1/screenboard.rb 55 def get_all_screenboards() 56 begin 57 params = { 58 :api_key => @api_key, 59 :application_key => @application_key 60 } 61 62 request(Net::HTTP::Get, "/api/#{API_VERSION}/screen", params, nil, false) 63 rescue Exception => e 64 suppress_error_if_silent e 65 end 66 end
get_screenboard(board_id)
click to toggle source
# File lib/dogapi-demo/v1/screenboard.rb 42 def get_screenboard(board_id) 43 begin 44 params = { 45 :api_key => @api_key, 46 :application_key => @application_key 47 } 48 49 request(Net::HTTP::Get, "/api/#{API_VERSION}/screen/#{board_id}", params, nil, false) 50 rescue Exception => e 51 suppress_error_if_silent e 52 end 53 end
revoke_screenboard(board_id)
click to toggle source
# File lib/dogapi-demo/v1/screenboard.rb 94 def revoke_screenboard(board_id) 95 begin 96 params = { 97 :api_key => @api_key, 98 :application_key => @application_key 99 } 100 101 request(Net::HTTP::Delete, "/api/#{API_VERSION}/screen/share/#{board_id}", params, nil, false) 102 rescue Exception => e 103 suppress_error_if_silent e 104 end 105 end
update_screenboard(board_id, description)
click to toggle source
# File lib/dogapi-demo/v1/screenboard.rb 26 def update_screenboard(board_id, description) 27 28 begin 29 params = { 30 :api_key => @api_key, 31 :application_key => @application_key 32 } 33 34 body = description 35 36 request(Net::HTTP::Put, "/api/#{API_VERSION}/screen/#{board_id}", params, body, true) 37 rescue Exception => e 38 suppress_error_if_silent e 39 end 40 end