All URIs are relative to {base_url}/api/v2
Method | HTTP request | Description |
---|---|---|
listAllProperties | GET /:company_id/properties | |
createProperty | POST /:company_id/properties | |
updateProperty | PUT /:company_id/properties/:property_id | |
archiveProperty | DELETE /:company_id/properties/:property_id |
\IntellirentSDK\Models\Collections\PropertyCollection
use IntellirentSDK\Apis\PropertyApi;
$propertyApi = new PropertyApi();
$properties = $propertyApi->listAllProperties();
None
\IntellirentSDK\Models\Collections\PropertyCollection
- Content-Type: application/json
- SECURITY-TOKEN: {security_token}
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Intellirent\Models\NewPropertyResponse
To create a new property, we can either provide an (associative) array
with the expected values, or a Property
object.
use IntellirentSDK\Apis\PropertyApi;
$propertyApi = new PropertyApi();
# Using associative array
$newPropertyResponse = $propertyApi->createProperty([
'agent_email' => '[email protected]',
'street_name_1' => '5th avenue',
'street_name_2' => 'governer house',
'unit_number' => 1,
'city' => 'Santa Clara',
'state' => 'NY',
'utilities' => 'All utilities included',
'postal_code' => '23456',
'rate' => 1500,
'security_deposit' => 1500,
'bedrooms' => 2,
'bathrooms' => 2,
'parking' => 1,
'property_type' => 'HOUSE',
'available_date' => '2/2/2017',
'lease_duration' => '6 months lease',
'description' => 'very beautiful',
'amenities' => ["Hardwood floors","Elevator in building","Garden","On-site gym"],
'pictures' => ["https://up-production.s3.amazonaws.com/uploads/grid_view_c8313a34-1402-4350-82cc-d0d103927c0e.jpg"]
]);
use IntellirentSDK\Apis\PropertyApi;
use IntellirentSDK\Models\Property;
$propertyApi = new PropertyApi();
# Using Property object
$property = new IntellirentSDK\Models\Property();
$property->street_name_1 = '5th avenue';
$property->city = 'Santa Clara';
$property->state = 'NY';
$property->postal_code = '23456';
$property->rate = 1500;
$property->security_deposit = 1500;
$property->bedrooms = 2;
$property->bathrooms = 2;
$property->agent_email = '[email protected]';
$property->street_name_2 = 'governet house';
$property->unit_number = 1;
$property->parking = 1;
$property->property_type = 'HOUSE';
$property->available_date = '2/2/2017';
$property->lease_terms = '6 months';
$property->amenities = ["Hardwood floors","Elevator in building","Garden","On-site gym"];
$property->pictures = ["https://up-production.s3.amazonaws.com/uploads/grid_view_c8313a34-1402-4350-82cc-d0d103927c0e.jpg"];
$newPropertyResponse = $propertyApi->createProperty($property);
Name | Type | Description | Notes |
---|---|---|---|
data | Associative Array or \IntellirentSDK\Mdels\Property |
Property data |
\IntellirentSDK\Models\NewPropertyResponse
- Content-Type: application/json
- SECURITY-TOKEN: {security_token}
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string
To update a property, we'll provide the $property
which is an instance of PropertyList and an array
of $data
with the property information to the method call
use IntellirentSDK\Apis\PropertyApi;
$propertyApi = new PropertyApi($apiClient);
$properties = $propertyApi->listAllProperties();
$propertyApi->updateProperty($properties->getItems()[0], [
'unit_number' => 2,
'parking' => 2
]);
Name | Type | Description | Notes |
---|---|---|---|
property | \IntellirentSDK\Mdels\PropertyList | PropertyList Object | |
data | Associative Array |
Property data |
string
- Content-Type: application/json
- SECURITY-TOKEN: {security_token}
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string
To archive a property, we'll provide the $property
which is an instance of the PropertyList and $agentEmail
to the method call
use IntellirentSDK\Apis\PropertyApi;
$propertyApi = new PropertyApi($apiClient);
$properties = $propertyApi->listAllProperties();
$propertyApi->archiveProperty($properties->getItems()[0], '[email protected]');
Name | Type | Description | Notes |
---|---|---|---|
property | \IntellirentSDK\Mdels\PropertyList | PropertyList Object | |
agentEmail | string |
string
- Content-Type: application/json
- SECURITY-TOKEN: {security_token}
[Back to top] [Back to API list] [Back to Model list] [Back to README]