Skip to content

Commit

Permalink
Merge pull request #278 from gemal/https
Browse files Browse the repository at this point in the history
change http to https
  • Loading branch information
atanasiuk-hubspot authored Jan 9, 2020
2 parents cee468c + 6b07f33 commit 910b610
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 63 deletions.
8 changes: 4 additions & 4 deletions src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ public function getStatusCode()
* immutability of the message, and MUST return an instance that has the
* updated status and reason phrase.
*
* @see http://tools.ietf.org/html/rfc7231#section-6
* @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
* @see https://tools.ietf.org/html/rfc7231#section-6
* @see https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
*
* @param int $code the 3-digit integer result code to set
* @param string $reasonPhrase the reason phrase to use with the
Expand All @@ -365,8 +365,8 @@ public function withStatus($code, $reasonPhrase = '')
* listed in the IANA HTTP Status Code Registry) for the response's
* status code.
*
* @see http://tools.ietf.org/html/rfc7231#section-6
* @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
* @see https://tools.ietf.org/html/rfc7231#section-6
* @see https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
*
* @return string reason phrase; must return an empty string if none present
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/BlogPosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getById($id)
/**
* Updates the auto-save buffer. Live objects will not be impacted.
*
* @see http://developers.hubspot.com/docs/methods/blogv2/put_blog_posts_blog_post_id_buffer
* @see https://developers.hubspot.com/docs/methods/blogv2/put_blog_posts_blog_post_id_buffer
*
* @param int $id the blog post ID
* @param array $params allowed parameters
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/BlogTopics.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function all($params = [])
/**
* Search a topic by the query. $query will match name and slug partially.
*
* @see http://developers.hubspot.com/docs/methods/blog/v3/search-blog-topics
* @see https://developers.hubspot.com/docs/methods/blog/v3/search-blog-topics
*
* @param string $query Search query
* @param array $params Array of optional parameters ['name','slug','limit', 'offset', 'active', 'blog']
Expand Down
22 changes: 11 additions & 11 deletions src/Resources/Companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Companies extends Resource
*
* @param array $properties array of company properties
*
* @see http://developers.hubspot.com/docs/methods/companies/create_company
* @see https://developers.hubspot.com/docs/methods/companies/create_company
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -27,7 +27,7 @@ public function create(array $properties)
* @param int $id the company id
* @param array $properties the company properties to update
*
* @see http://developers.hubspot.com/docs/methods/companies/update_company
* @see https://developers.hubspot.com/docs/methods/companies/update_company
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand Down Expand Up @@ -57,7 +57,7 @@ public function updateBatch(array $companies)
*
* @param int $id The company id
*
* @see http://developers.hubspot.com/docs/methods/companies/delete_company
* @see https://developers.hubspot.com/docs/methods/companies/delete_company
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -73,7 +73,7 @@ public function delete($id)
*
* @param array $params Array of optional parameters ['limit', 'offset', 'properties']
*
* @see http://developers.hubspot.com/docs/methods/companies/get-all-companies
* @see https://developers.hubspot.com/docs/methods/companies/get-all-companies
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -91,7 +91,7 @@ public function all(array $params = [])
*
* @param array $params Array of optional parameters ['count', 'offset']
*
* @see http://developers.hubspot.com/docs/methods/companies/get_companies_modified
* @see https://developers.hubspot.com/docs/methods/companies/get_companies_modified
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -109,7 +109,7 @@ public function getRecentlyModified(array $params = [])
*
* @param array $params Array of optional parameters ['count', 'offset']
*
* @see http://developers.hubspot.com/docs/methods/companies/get_companies_created
* @see https://developers.hubspot.com/docs/methods/companies/get_companies_created
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand Down Expand Up @@ -153,7 +153,7 @@ public function searchByDomain($domain, array $properties = [], $limit = 100, $o
*
* @param int $id
*
* @see http://developers.hubspot.com/docs/methods/companies/get_company
* @see https://developers.hubspot.com/docs/methods/companies/get_company
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -171,7 +171,7 @@ public function getById($id)
* @param int $contactId
* @param int $companyId
*
* @see http://developers.hubspot.com/docs/methods/companies/add_contact_to_company
* @see https://developers.hubspot.com/docs/methods/companies/add_contact_to_company
* @see CrmAssociations::create is used to create associations between objects
* @deprecated
*
Expand All @@ -190,7 +190,7 @@ public function addContact($contactId, $companyId)
* @param int $companyId the id of the company
* @param array $params Array of optional parameters ['count', 'vidOffset']
*
* @see http://developers.hubspot.com/docs/methods/companies/get_company_contacts
* @see https://developers.hubspot.com/docs/methods/companies/get_company_contacts
* @see CrmAssociations::get is used to get associations between objects
* @deprecated
*
Expand All @@ -211,7 +211,7 @@ public function getAssociatedContacts($companyId, array $params = [])
* @param int $companyId the id of the company
* @param array $params Array of optional parameters ['count', 'vidOffset']
*
* @see http://developers.hubspot.com/docs/methods/companies/get_company_contacts_by_id
* @see https://developers.hubspot.com/docs/methods/companies/get_company_contacts_by_id
* @see CrmAssociations::get is used to get associations between objects
* @deprecated
*
Expand All @@ -232,7 +232,7 @@ public function getAssociatedContactIds($companyId, array $params = [])
* @param int $contactId
* @param int $companyId
*
* @see http://developers.hubspot.com/docs/methods/companies/remove_contact_from_company
* @see https://developers.hubspot.com/docs/methods/companies/remove_contact_from_company
* @see CrmAssociations::delete is used to delete associations between objects
* @deprecated
*
Expand Down
18 changes: 9 additions & 9 deletions src/Resources/CompanyProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CompanyProperties extends Resource
/**
* Creates a property on every company object to store a specific piece of data.
*
* @see http://developers.hubspot.com/docs/methods/companies/create_company_property
* @see https://developers.hubspot.com/docs/methods/companies/create_company_property
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -24,7 +24,7 @@ public function create(array $property)
/**
* Update the specified company-level property. This does not update the value on a specified company, but instead changes the definition of the company property.
*
* @see http://developers.hubspot.com/docs/methods/companies/update_company_property
* @see https://developers.hubspot.com/docs/methods/companies/update_company_property
*
* @param string $propertyName
*
Expand All @@ -42,7 +42,7 @@ public function update($propertyName, array $property)
/**
* For a portal, delete an existing company property.
*
* @see http://developers.hubspot.com/docs/methods/companies/delete_company_property
* @see https://developers.hubspot.com/docs/methods/companies/delete_company_property
*
* @param string $propertyName the API name of the property that you will be deleting
*
Expand All @@ -58,7 +58,7 @@ public function delete($propertyName)
/**
* Returns a JSON object representing the definition for a given company property.
*
* @see http://developers.hubspot.com/docs/methods/companies/get_company_property
* @see https://developers.hubspot.com/docs/methods/companies/get_company_property
*
* @param string $propertyName the API name of the property that you wish to see metadata for
*
Expand All @@ -74,7 +74,7 @@ public function get($propertyName)
/**
* Returns all of the company properties, including their definition.
*
* @see http://developers.hubspot.com/docs/methods/companies/get_company_properties
* @see https://developers.hubspot.com/docs/methods/companies/get_company_properties
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -90,7 +90,7 @@ public function all()
*
* @param array $group defines the group and any properties within it
*
* @see http://developers.hubspot.com/docs/methods/companies/create_company_property_group
* @see https://developers.hubspot.com/docs/methods/companies/create_company_property_group
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -107,7 +107,7 @@ public function createGroup(array $group)
* @param string $groupName the API name of the property group that you will be updating
* @param array $group defines the property group and any properties within it
*
* @see http://developers.hubspot.com/docs/methods/companies/update_company_property_group
* @see https://developers.hubspot.com/docs/methods/companies/update_company_property_group
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -121,7 +121,7 @@ public function updateGroup($groupName, array $group)
/**
* Delete an existing company property group.
*
* @see http://developers.hubspot.com/docs/methods/companies/delete_company_property_group
* @see https://developers.hubspot.com/docs/methods/companies/delete_company_property_group
*
* @param string $groupName the API name of the property group that you will be deleting
*
Expand All @@ -137,7 +137,7 @@ public function deleteGroup($groupName)
/**
* Returns all of the company property groups for a given portal.
*
* @see http://developers.hubspot.com/docs/methods/companies/get_company_property_groups
* @see https://developers.hubspot.com/docs/methods/companies/get_company_property_groups
*
* @param bool $includeProperties if true returns all of the properties for each company property group
*
Expand Down
18 changes: 9 additions & 9 deletions src/Resources/ContactProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ContactProperties extends Resource
* Properties in HubSpot are fields that have been created, in this case for deals in a given portal.
* This endpoint will return all of the contacts properties, including their definition, for a given portal.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties
* @see https://developers.hubspot.com/docs/methods/contacts/v2/get_contacts_properties
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -26,7 +26,7 @@ public function all()
*
* Returns a JSON object representing the definition for a given contact property.
*
* @see http://developers.hubspot.com/docs/methods/companies/get_contact_property
* @see https://developers.hubspot.com/docs/methods/companies/get_contact_property
*
* @param string $name the name of the property
*
Expand All @@ -45,7 +45,7 @@ public function get($name)
* Create a property on every contact object to store a specific piece of data. In the example below,
* we want to store an invoice number on a separate field on deals.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property
* @see https://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand All @@ -61,7 +61,7 @@ public function create(array $property)
*
* Update a specified contact property.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property
* @see https://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property
*
* @param string $name
*
Expand All @@ -81,7 +81,7 @@ public function update($name, array $property)
*
* For a portal, delete an existing contact property.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/delete_contact_property
* @see https://developers.hubspot.com/docs/methods/contacts/v2/delete_contact_property
*
* @param string $name
*
Expand All @@ -99,7 +99,7 @@ public function delete($name)
*
* Returns all of the contact property groups for a given portal.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/get_contact_property_groups
* @see https://developers.hubspot.com/docs/methods/contacts/v2/get_contact_property_groups
*
* @param bool $includeProperties
*
Expand All @@ -123,7 +123,7 @@ public function getGroups($includeProperties = false)
* Create a new contact property group to gather like contact-level data. Property groups allow you to more
* easily manage properties in a given portal and make contact records easier to parse for the user.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property_group
* @see https://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property_group
*
* @param array $group Group properties
*
Expand All @@ -141,7 +141,7 @@ public function createGroup(array $group)
*
* Update a previously created contact property group.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property_group
* @see https://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property_group
*
* @param string $name
*
Expand All @@ -161,7 +161,7 @@ public function updateGroup($name, array $group)
*
* Delete an existing contact property group.
*
* @see http://developers.hubspot.com/docs/methods/contacts/v2/delete_contact_property_group
* @see https://developers.hubspot.com/docs/methods/contacts/v2/delete_contact_property_group
*
* @param string $name
*
Expand Down
14 changes: 7 additions & 7 deletions src/Resources/Contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function delete($id)
* you know where you are in the list of contacts. You can then use the "vid-offset" field in the "vidOffset"
* parameter described below.
*
* @see http://developers.hubspot.com/docs/methods/contacts/get_contacts
* @see https://developers.hubspot.com/docs/methods/contacts/get_contacts
*
* @param array $params Array of optional parameters ['count', 'property', 'vidOffset']
*
Expand All @@ -134,7 +134,7 @@ public function all(array $params = [])
* A paginated list of contacts will be returned to you, with a maximum of 100 contacts per page, as specified by
* the "count" parameter. The endpoint only scrolls back in time 30 days.
*
* @see http://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts
* @see https://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts
*
* @param array $params Array of optional parameters ['count', 'timeOffset', 'vidOffset', 'property',
* 'propertyMode', 'formSubmissionMode', 'showListMemberships']
Expand All @@ -155,7 +155,7 @@ public function recent(array $params = [])
* A paginated list of contacts will be returned to you, with a maximum of 100 contacts per page, as specified by
* the "count" parameter. The endpoint only scrolls back in time 30 days.
*
* @see http://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts
* @see https://developers.hubspot.com/docs/methods/contacts/get_recently_updated_contacts
*
* @param array $params Array of optional parameters ['count', 'timeOffset', 'vidOffset', 'property',
* 'propertyMode', 'formSubmissionMode', 'showListMemberships']
Expand Down Expand Up @@ -196,7 +196,7 @@ public function getById($id, array $params = [])
* This method will also return you much of the HubSpot lead "intelligence" for each requested contact record. The
* endpoint accepts many query parameters that allow for customization based on a variety of integration use cases.
*
* @see http://developers.hubspot.com/docs/methods/contacts/get_batch_by_vid
* @see https://developers.hubspot.com/docs/methods/contacts/get_batch_by_vid
*
* @param array $vids Array of visitor IDs
* @param array $params Array of optional parameters ['property', 'propertyMode', 'formSubmissionMode',
Expand Down Expand Up @@ -238,7 +238,7 @@ public function getByEmail(string $email, array $params = [])
* This method will also return you much of the HubSpot lead "intelligence" for each requested contact record. The
* endpoint accepts many query parameters that allow for customization based on a variety of integration use cases.
*
* @see http://developers.hubspot.com/docs/methods/contacts/get_batch_by_email
* @see https://developers.hubspot.com/docs/methods/contacts/get_batch_by_email
*
* @param array $emails Array of email adresses
* @param array $params Array of optional parameters ['property', 'propertyMode', 'formSubmissionMode',
Expand Down Expand Up @@ -284,7 +284,7 @@ public function getByToken(string $utk, array $params = [])
* The endpoint does not allow for CORS, so if you are looking up contacts from their user token on the client,
* you'll need to spin up a proxy server to interact with the API.
*
* @see http://developers.hubspot.com/docs/methods/contacts/get_batch_by_utk
* @see https://developers.hubspot.com/docs/methods/contacts/get_batch_by_utk
*
* @param array $utks Array of hubspot user tokens (hubspotutk)
* @param array $params Array of optional parameters ['property', 'propertyMode', 'formSubmissionMode',
Expand Down Expand Up @@ -312,7 +312,7 @@ public function getBatchByTokens(array $utks, array $params = [])
* return is the contact ID (vid) that you can then use to look up much
* more data about that particular contact by its ID.
*
* @see http://developers.hubspot.com/docs/methods/contacts/search_contacts
* @see https://developers.hubspot.com/docs/methods/contacts/search_contacts
*
* @param string $query Search query
* @param array $params Array of optional parameters ['count', 'offset']
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/DealProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DealProperties extends Resource
*
* Returns a JSON object representing the definition for a given deal property.
*
* @see http://developers.hubspot.com/docs/methods/deals/get_deal_property
* @see https://developers.hubspot.com/docs/methods/deals/get_deal_property
*
* @param string $name the name of the property
*
Expand Down Expand Up @@ -44,7 +44,7 @@ public function create(array $property)
*
* Update a specified deal property.
*
* @see http://developers.hubspot.com/docs/methods/deals/update_deal_property
* @see https://developers.hubspot.com/docs/methods/deals/update_deal_property
*
* @param string $name
*
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Engagements.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function get($id)
*
* @param array $params Array of optional parameters ['limit', 'offset']
*
* @see http://developers.hubspot.com/docs/methods/engagements/get-all-engagements
* @see https://developers.hubspot.com/docs/methods/engagements/get-all-engagements
*
* @return \SevenShores\Hubspot\Http\Response
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function trigger(
$contactRevenue = null,
$contactProperties = []
) {
$endpoint = 'http://track.hubspot.com/v1/event';
$endpoint = 'https://track.hubspot.com/v1/event';

$required['_a'] = $hubId;
$required['_n'] = $eventId;
Expand Down
Loading

0 comments on commit 910b610

Please sign in to comment.