-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Mark-RSK/SingleHubAPIKey
Pass a common HubSpotApi class to each example method
- Loading branch information
Showing
6 changed files
with
20 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using HubSpot.NET.Api.Contact.Dto; | ||
using HubSpot.NET.Api.Engagement.Dto; | ||
using HubSpot.NET.Api.Files.Dto; | ||
using HubSpot.NET.Core; | ||
using HubSpot.NET.Core; | ||
|
||
namespace HubSpot.NET.Examples | ||
{ | ||
public class Examples | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Deals.Example(); | ||
/** | ||
* Initialize the API with your API Key | ||
* You can find or generate this under Integrations -> HubSpot API key | ||
*/ | ||
var api = new HubSpotApi("YOUR API KEY HERE"); | ||
|
||
Companies.Example(); | ||
Deals.Example(api); | ||
|
||
Contacts.Example(); | ||
Companies.Example(api); | ||
|
||
CompanyProperties.Example(); | ||
Contacts.Example(api); | ||
|
||
EmailSubscriptions.Example(); | ||
CompanyProperties.Example(api); | ||
|
||
EmailSubscriptions.Example(api); | ||
} | ||
} | ||
} |