def get_response(url, query = nil)
      query = "&#{query}" if query != nil || query != ""
      resource_url = "#{@base_uri}#{url}?access_token=#{@access_token}#{query}"

      begin
        response = RestClient.get(resource_url)
        result = JSON.parse(response, object_class: OpenStruct)
        return result
      rescue => e
        return JSON.parse(e.response, object_class: OpenStruct)
      end
    end
def get_response(url, query = nil)
      query = "&#{query}" if query != nil || query != ""
      resource_url = "#{@base_uri}#{url}?access_token=#{@access_token}#{query}"

      begin
        response = RestClient.get(resource_url)
        result = JSON.parse(response, object_class: OpenStruct)
        return result
      rescue => e
        return JSON.parse(e.response, object_class: OpenStruct)
      end
    end
GET