Exemplo n.º 1
0
        public HubSpotApi(string apiKey)
        {
            IHubSpotClient client = new HubSpotBaseClient(apiKey);

            Company           = new HubSpotCompanyApi(client);
            Contact           = new HubSpotContactApi(client);
            Deal              = new HubSpotDealApi(client);
            Engagement        = new HubSpotEngagementApi(client);
            File              = new HubSpotCosFileApi(client);
            Owner             = new HubSpotOwnerApi(client);
            CompanyProperties = new HubSpotCompaniesPropertiesApi(client);
        }
Exemplo n.º 2
0
 private void InitializeRepos(IHubSpotClient client, string clientId = "", string clientSecret = "")
 {
     OAuth              = new HubSpotOAuthApi(client, clientId, clientSecret);
     Company            = new HubSpotCompanyApi(client);
     Contact            = new HubSpotContactApi(client);
     ContactProperty    = new HubSpotContactPropertyApi(client);
     Deal               = new HubSpotDealApi(client);
     Engagement         = new HubSpotEngagementApi(client);
     File               = new HubSpotCosFileApi(client);
     Owner              = new HubSpotOwnerApi(client);
     CompanyProperties  = new HubSpotCompaniesPropertiesApi(client);
     EmailSubscriptions = new HubSpotEmailSubscriptionsApi(client);
     Timelines          = new HubSpotTimelineApi(client);
 }