class Dogapi::V1::ScreenboardService

Constants

API_VERSION

Public Instance Methods

create_screenboard(description) click to toggle source
# File lib/dogapi/v1/screenboard.rb, line 10
def create_screenboard(description)

  begin
    params = {
      :api_key => @api_key,
      :application_key => @application_key
    }

    body = description

    request(Net::HTTP::Post, "/api/#{API_VERSION}/screen", params, description, true)
  rescue Exception => e
    suppress_error_if_silent e
  end
end
delete_screenboard(board_id) click to toggle source
# File lib/dogapi/v1/screenboard.rb, line 68
def delete_screenboard(board_id)
  begin
    params = {
      :api_key => @api_key,
      :application_key => @application_key
    }

    request(Net::HTTP::Delete, "/api/#{API_VERSION}/screen/#{board_id}", params, nil, false)
  rescue Exception => e
    suppress_error_if_silent e
  end
end
get_all_screenboards() click to toggle source
# File lib/dogapi/v1/screenboard.rb, line 55
def get_all_screenboards()
  begin
    params = {
      :api_key => @api_key,
      :application_key => @application_key
    }

    request(Net::HTTP::Get, "/api/#{API_VERSION}/screen", params, nil, false)
  rescue Exception => e
    suppress_error_if_silent e
  end
end
get_screenboard(board_id) click to toggle source
# File lib/dogapi/v1/screenboard.rb, line 42
def get_screenboard(board_id)
  begin
    params = {
      :api_key => @api_key,
      :application_key => @application_key
    }

    request(Net::HTTP::Get, "/api/#{API_VERSION}/screen/#{board_id}", params, nil, false)
  rescue Exception => e
    suppress_error_if_silent e
  end
end
revoke_screenboard(board_id) click to toggle source
# File lib/dogapi/v1/screenboard.rb, line 94
def revoke_screenboard(board_id)
  begin
    params = {
      :api_key => @api_key,
      :application_key => @application_key
    }

    request(Net::HTTP::Delete, "/api/#{API_VERSION}/screen/share/#{board_id}", params, nil, false)
  rescue Exception => e
    suppress_error_if_silent e
  end
end
share_screenboard(board_id) click to toggle source
# File lib/dogapi/v1/screenboard.rb, line 81
def share_screenboard(board_id)
  begin
    params = {
      :api_key => @api_key,
      :application_key => @application_key
    }

    request(Net::HTTP::Get, "/api/#{API_VERSION}/screen/share/#{board_id}", params, nil, false)
  rescue Exception => e
    suppress_error_if_silent e
  end
end
update_screenboard(board_id, description) click to toggle source
# File lib/dogapi/v1/screenboard.rb, line 26
def update_screenboard(board_id, description)

  begin
    params = {
      :api_key => @api_key,
      :application_key => @application_key
    }

    body = description

    request(Net::HTTP::Put, "/api/#{API_VERSION}/screen/#{board_id}", params, body, true)
  rescue Exception => e
    suppress_error_if_silent e
  end
end