procore v0.0.1 Procore.Resources.Offices
Available requests for the office resource.
Link to this section Summary
Link to this section Functions
Link to this function
list(map)
list(%{optional(company_id :: String.t()) => integer()}) :: %ResponseResult{ parsed_body: Procore.Resources.Offices.ResponseBodyTypes.ListOffices.t(), reply: atom(), status_code: DefinedTypes.non_error_status_code() } | %ErrorResult{reason: term(), reply: term()}
Lists all offices in a company.
Examples
iex> Procore.Resources.Offices.list(%{“company_id” => 1}) %ResponseResult{ status_code: 200, parsed_body: [%{
"address" => "201 N Central Ave",
"city" => "Phoenix",
"country_code" => "US",
"division" => nil,
"fax" => "6023333300",
"id" => 12557,
"name" => "Arizona Office",
"phone" => "6023333333",
"state_code" => "AZ",
"zip" => "85004"
}], reply: :ok }