Method: FileboundClient::Endpoints::Files#file_by_key_value

Defined in:
lib/filebound_client/endpoints/files.rb

#file_by_key_value(project_id, key_value) ⇒ int

Retrieves file_id by specifying a project id and key value

Parameters:

  • project_id (int)

    the project key

  • key_value (String)

    the key value to search on

Returns:

  • (int)

    the file id



33
34
35
# File 'lib/filebound_client/endpoints/files.rb', line 33

def file_by_key_value(project_id, key_value)
  get("/files/#{project_id}/ByKeyValue", value: key_value)
end