From 8ede25ce2442e4b803db9fd65ea51f9550e578aa Mon Sep 17 00:00:00 2001 From: Renato Golia Date: Tue, 10 Nov 2020 16:59:21 +0100 Subject: [PATCH] Polishing before v1.0.0 (#35) --- .vscode/launch.json | 24 +- HubSpotSdk.sln | 282 +++++++++--------- appveyor.yml | 4 - docs/hubspot/basic-configuration.md | 8 +- .../ApiKeyAuthentication.csproj} | 2 +- .../ApiKeyAuthentication}/Program.cs | 0 .../OAuthAuthentication.csproj} | 2 +- .../OAuthAuthentication}/Program.cs | 0 .../ApiKeyAuthentication.csproj} | 2 +- .../ApiKeyAuthentication}/Program.cs | 0 .../OAuthAuthentication.csproj} | 2 +- .../OAuthAuthentication}/Program.cs | 0 .../OAuthHubSpotAuthenticator.cs | 2 +- .../HubSpotConfiguratorExtensions.cs | 7 + 14 files changed, 167 insertions(+), 168 deletions(-) rename samples/{RawApiKey/RawApiKey.csproj => hubspot-client/ApiKeyAuthentication/ApiKeyAuthentication.csproj} (91%) rename samples/{RawApiKey => hubspot-client/ApiKeyAuthentication}/Program.cs (100%) rename samples/{RawOAuth/RawOAuth.csproj => hubspot-client/OAuthAuthentication/OAuthAuthentication.csproj} (91%) rename samples/{RawOAuth => hubspot-client/OAuthAuthentication}/Program.cs (100%) rename samples/{ApiKey/ApiKey.csproj => hubspot/ApiKeyAuthentication/ApiKeyAuthentication.csproj} (92%) rename samples/{ApiKey => hubspot/ApiKeyAuthentication}/Program.cs (100%) rename samples/{OAuth/OAuth.csproj => hubspot/OAuthAuthentication/OAuthAuthentication.csproj} (92%) rename samples/{OAuth => hubspot/OAuthAuthentication}/Program.cs (100%) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8df90b9..0dd4d0f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,46 +5,46 @@ "version": "0.2.0", "configurations": [ { - "name": "Raw OAuth", + "name": "HubSpot.Client - OAuth", "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/samples/RawOAuth/bin/Debug/netcoreapp3.1/RawOAuth.dll", + "program": "${workspaceFolder}/samples/hubspot-client/OAuthAuthentication/bin/Debug/netcoreapp3.1/OAuthAuthentication.dll", "args": [], - "cwd": "${workspaceFolder}/samples/RawOAuth", + "cwd": "${workspaceFolder}/samples/hubspot-client/OAuthAuthentication", "console": "internalConsole", "stopAtEntry": false }, { - "name": "Raw ApiKey", + "name": "HubSpot.Client - ApiKey", "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/samples/RawApiKey/bin/Debug/netcoreapp3.1/RawApiKey.dll", + "program": "${workspaceFolder}/samples/hubspot-client/ApiKeyAuthentication/bin/Debug/netcoreapp3.1/ApiKeyAuthentication.dll", "args": [], - "cwd": "${workspaceFolder}/samples/RawApiKey", + "cwd": "${workspaceFolder}/samples/hubspot-client/ApiKeyAuthentication", "console": "internalConsole", "stopAtEntry": false }, { - "name": "OAuth", + "name": "HubSpot - OAuth", "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/samples/OAuth/bin/Debug/netcoreapp3.1/OAuth.dll", + "program": "${workspaceFolder}/samples/hubspot/OAuthAuthentication/bin/Debug/netcoreapp3.1/OAuthAuthentication.dll", "args": [], - "cwd": "${workspaceFolder}/samples/OAuth", + "cwd": "${workspaceFolder}/samples/hubspot/OAuthAuthentication", "console": "internalConsole", "stopAtEntry": false }, { - "name": "ApiKey", + "name": "HubSpot - ApiKey", "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/samples/ApiKey/bin/Debug/netcoreapp3.1/ApiKey.dll", + "program": "${workspaceFolder}/samples/hubspot/ApiKeyAuthentication/bin/Debug/netcoreapp3.1/ApiKeyAuthentication.dll", "args": [], - "cwd": "${workspaceFolder}/samples/ApiKey", + "cwd": "${workspaceFolder}/samples/hubspot/ApiKeyAuthentication", "console": "internalConsole", "stopAtEntry": false }, diff --git a/HubSpotSdk.sln b/HubSpotSdk.sln index b28f67e..f1ed587 100644 --- a/HubSpotSdk.sln +++ b/HubSpotSdk.sln @@ -1,38 +1,35 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 + +Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.27130.2036 +VisualStudioVersion = 15.0.26124.0 MinimumVisualStudioVersion = 15.0.26124.0 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AA9C11F7-D6E5-4D73-8693-153620062A49}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{A611C4D5-F3F8-460B-B40B-6421CE83BDFD}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HubSpot.Client", "src\HubSpot.Client\HubSpot.Client.csproj", "{A0D41ADC-2D99-41C7-925A-14AC539E6BEF}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "hubspot", "hubspot", "{14A0C76E-7EC5-4F8F-8BDF-5BAB7BA6BD31}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{8F7C07A1-6358-47A2-B669-C2FD20C2FF5C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiKeyAuthentication", "samples\hubspot\ApiKeyAuthentication\ApiKeyAuthentication.csproj", "{F482C98F-3706-40FE-9CC6-FBE01C34B27D}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.HubSpot.Client", "tests\Tests.HubSpot.Client\Tests.HubSpot.Client.csproj", "{72C2606A-743E-4ECE-B6A6-0270CE38EF68}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OAuthAuthentication", "samples\hubspot\OAuthAuthentication\OAuthAuthentication.csproj", "{4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DFEF291B-47B1-42DD-93EA-95BE86F56D09}" - ProjectSection(SolutionItems) = preProject - .gitignore = .gitignore - build.cake = build.cake - LICENSE = LICENSE - README.md = README.md - EndProjectSection +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "hubspot-client", "hubspot-client", "{ECD95D76-F429-4CB1-AD4B-2B0C31857393}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HubSpot", "src\HubSpot\HubSpot.csproj", "{FB7076C1-0D6F-436B-B3D3-B582F29C62A2}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiKeyAuthentication", "samples\hubspot-client\ApiKeyAuthentication\ApiKeyAuthentication.csproj", "{3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.HubSpot", "tests\Tests.HubSpot\Tests.HubSpot.csproj", "{6776684F-4AB5-414F-9FA2-9513561B3A2C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OAuthAuthentication", "samples\hubspot-client\OAuthAuthentication\OAuthAuthentication.csproj", "{152CD484-5EBC-4363-83B7-C6EFD80E9D7C}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Integrations", "tests\Tests.Integrations\Tests.Integrations.csproj", "{66823383-742B-4EE9-AF35-FE8ECFE57BBF}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{4FF2AA59-2531-4FBF-81CE-E5CC9AD2AC71}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{FC6ECCBD-20FE-4291-89A6-FCEDBCBBDFB1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HubSpot", "src\HubSpot\HubSpot.csproj", "{85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiKey", "samples\ApiKey\ApiKey.csproj", "{74224AF1-496A-44B6-903E-AAA19384831A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HubSpot.Client", "src\HubSpot.Client\HubSpot.Client.csproj", "{C10138FB-EE4A-4669-97FC-7BE132545B16}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OAuth", "samples\OAuth\OAuth.csproj", "{FE161D22-68C7-4DED-AB19-79EDD9CAE474}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{93F45711-C865-4146-BE75-B6B35631BD9B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RawApiKey", "samples\RawApiKey\RawApiKey.csproj", "{42F2713C-4FBB-44B1-B62D-BD60B41C4309}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.HubSpot", "tests\Tests.HubSpot\Tests.HubSpot.csproj", "{A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RawOAuth", "samples\RawOAuth\RawOAuth.csproj", "{FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.HubSpot.Client", "tests\Tests.HubSpot.Client\Tests.HubSpot.Client.csproj", "{B396A1F6-FB82-45D0-A6FC-A08C001482D2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.Integrations", "tests\Tests.Integrations\Tests.Integrations.csproj", "{54D3282E-1F25-4723-B848-FF74792B8AB8}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -43,131 +40,130 @@ Global Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Debug|x64.ActiveCfg = Debug|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Debug|x64.Build.0 = Debug|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Debug|x86.ActiveCfg = Debug|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Debug|x86.Build.0 = Debug|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Release|Any CPU.Build.0 = Release|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Release|x64.ActiveCfg = Release|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Release|x64.Build.0 = Release|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Release|x86.ActiveCfg = Release|Any CPU - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF}.Release|x86.Build.0 = Release|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Debug|Any CPU.Build.0 = Debug|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Debug|x64.ActiveCfg = Debug|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Debug|x64.Build.0 = Debug|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Debug|x86.ActiveCfg = Debug|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Debug|x86.Build.0 = Debug|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Release|Any CPU.ActiveCfg = Release|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Release|Any CPU.Build.0 = Release|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Release|x64.ActiveCfg = Release|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Release|x64.Build.0 = Release|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Release|x86.ActiveCfg = Release|Any CPU - {72C2606A-743E-4ECE-B6A6-0270CE38EF68}.Release|x86.Build.0 = Release|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Debug|x64.ActiveCfg = Debug|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Debug|x64.Build.0 = Debug|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Debug|x86.ActiveCfg = Debug|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Debug|x86.Build.0 = Debug|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Release|Any CPU.Build.0 = Release|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Release|x64.ActiveCfg = Release|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Release|x64.Build.0 = Release|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Release|x86.ActiveCfg = Release|Any CPU - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2}.Release|x86.Build.0 = Release|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Debug|x64.ActiveCfg = Debug|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Debug|x64.Build.0 = Debug|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Debug|x86.ActiveCfg = Debug|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Debug|x86.Build.0 = Debug|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Release|Any CPU.Build.0 = Release|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Release|x64.ActiveCfg = Release|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Release|x64.Build.0 = Release|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Release|x86.ActiveCfg = Release|Any CPU - {6776684F-4AB5-414F-9FA2-9513561B3A2C}.Release|x86.Build.0 = Release|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Debug|x64.ActiveCfg = Debug|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Debug|x64.Build.0 = Debug|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Debug|x86.ActiveCfg = Debug|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Debug|x86.Build.0 = Debug|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Release|Any CPU.Build.0 = Release|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Release|x64.ActiveCfg = Release|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Release|x64.Build.0 = Release|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Release|x86.ActiveCfg = Release|Any CPU - {66823383-742B-4EE9-AF35-FE8ECFE57BBF}.Release|x86.Build.0 = Release|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Debug|x64.ActiveCfg = Debug|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Debug|x64.Build.0 = Debug|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Debug|x86.ActiveCfg = Debug|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Debug|x86.Build.0 = Debug|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Release|Any CPU.Build.0 = Release|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Release|x64.ActiveCfg = Release|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Release|x64.Build.0 = Release|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Release|x86.ActiveCfg = Release|Any CPU - {74224AF1-496A-44B6-903E-AAA19384831A}.Release|x86.Build.0 = Release|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Debug|x64.ActiveCfg = Debug|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Debug|x64.Build.0 = Debug|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Debug|x86.ActiveCfg = Debug|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Debug|x86.Build.0 = Debug|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Release|Any CPU.Build.0 = Release|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Release|x64.ActiveCfg = Release|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Release|x64.Build.0 = Release|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Release|x86.ActiveCfg = Release|Any CPU - {FE161D22-68C7-4DED-AB19-79EDD9CAE474}.Release|x86.Build.0 = Release|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Debug|Any CPU.Build.0 = Debug|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Debug|x64.ActiveCfg = Debug|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Debug|x64.Build.0 = Debug|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Debug|x86.ActiveCfg = Debug|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Debug|x86.Build.0 = Debug|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Release|Any CPU.ActiveCfg = Release|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Release|Any CPU.Build.0 = Release|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Release|x64.ActiveCfg = Release|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Release|x64.Build.0 = Release|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Release|x86.ActiveCfg = Release|Any CPU - {42F2713C-4FBB-44B1-B62D-BD60B41C4309}.Release|x86.Build.0 = Release|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Debug|x64.ActiveCfg = Debug|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Debug|x64.Build.0 = Debug|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Debug|x86.ActiveCfg = Debug|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Debug|x86.Build.0 = Debug|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Release|Any CPU.Build.0 = Release|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Release|x64.ActiveCfg = Release|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Release|x64.Build.0 = Release|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Release|x86.ActiveCfg = Release|Any CPU - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26}.Release|x86.Build.0 = Release|Any CPU - EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {A0D41ADC-2D99-41C7-925A-14AC539E6BEF} = {AA9C11F7-D6E5-4D73-8693-153620062A49} - {72C2606A-743E-4ECE-B6A6-0270CE38EF68} = {8F7C07A1-6358-47A2-B669-C2FD20C2FF5C} - {FB7076C1-0D6F-436B-B3D3-B582F29C62A2} = {AA9C11F7-D6E5-4D73-8693-153620062A49} - {6776684F-4AB5-414F-9FA2-9513561B3A2C} = {8F7C07A1-6358-47A2-B669-C2FD20C2FF5C} - {66823383-742B-4EE9-AF35-FE8ECFE57BBF} = {8F7C07A1-6358-47A2-B669-C2FD20C2FF5C} - {74224AF1-496A-44B6-903E-AAA19384831A} = {FC6ECCBD-20FE-4291-89A6-FCEDBCBBDFB1} - {FE161D22-68C7-4DED-AB19-79EDD9CAE474} = {FC6ECCBD-20FE-4291-89A6-FCEDBCBBDFB1} - {42F2713C-4FBB-44B1-B62D-BD60B41C4309} = {FC6ECCBD-20FE-4291-89A6-FCEDBCBBDFB1} - {FFE4401C-2AB6-4F87-8A8A-BFAE636E8E26} = {FC6ECCBD-20FE-4291-89A6-FCEDBCBBDFB1} + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Debug|x64.ActiveCfg = Debug|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Debug|x64.Build.0 = Debug|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Debug|x86.ActiveCfg = Debug|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Debug|x86.Build.0 = Debug|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Release|Any CPU.Build.0 = Release|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Release|x64.ActiveCfg = Release|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Release|x64.Build.0 = Release|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Release|x86.ActiveCfg = Release|Any CPU + {F482C98F-3706-40FE-9CC6-FBE01C34B27D}.Release|x86.Build.0 = Release|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Debug|x64.ActiveCfg = Debug|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Debug|x64.Build.0 = Debug|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Debug|x86.ActiveCfg = Debug|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Debug|x86.Build.0 = Debug|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Release|Any CPU.Build.0 = Release|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Release|x64.ActiveCfg = Release|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Release|x64.Build.0 = Release|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Release|x86.ActiveCfg = Release|Any CPU + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35}.Release|x86.Build.0 = Release|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Debug|x64.ActiveCfg = Debug|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Debug|x64.Build.0 = Debug|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Debug|x86.ActiveCfg = Debug|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Debug|x86.Build.0 = Debug|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Release|Any CPU.Build.0 = Release|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Release|x64.ActiveCfg = Release|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Release|x64.Build.0 = Release|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Release|x86.ActiveCfg = Release|Any CPU + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D}.Release|x86.Build.0 = Release|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Debug|x64.ActiveCfg = Debug|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Debug|x64.Build.0 = Debug|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Debug|x86.ActiveCfg = Debug|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Debug|x86.Build.0 = Debug|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Release|Any CPU.Build.0 = Release|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Release|x64.ActiveCfg = Release|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Release|x64.Build.0 = Release|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Release|x86.ActiveCfg = Release|Any CPU + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C}.Release|x86.Build.0 = Release|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Debug|x64.ActiveCfg = Debug|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Debug|x64.Build.0 = Debug|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Debug|x86.ActiveCfg = Debug|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Debug|x86.Build.0 = Debug|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Release|Any CPU.Build.0 = Release|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Release|x64.ActiveCfg = Release|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Release|x64.Build.0 = Release|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Release|x86.ActiveCfg = Release|Any CPU + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8}.Release|x86.Build.0 = Release|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Debug|x64.ActiveCfg = Debug|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Debug|x64.Build.0 = Debug|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Debug|x86.ActiveCfg = Debug|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Debug|x86.Build.0 = Debug|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Release|Any CPU.Build.0 = Release|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Release|x64.ActiveCfg = Release|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Release|x64.Build.0 = Release|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Release|x86.ActiveCfg = Release|Any CPU + {C10138FB-EE4A-4669-97FC-7BE132545B16}.Release|x86.Build.0 = Release|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Debug|x64.ActiveCfg = Debug|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Debug|x64.Build.0 = Debug|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Debug|x86.ActiveCfg = Debug|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Debug|x86.Build.0 = Debug|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Release|Any CPU.Build.0 = Release|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Release|x64.ActiveCfg = Release|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Release|x64.Build.0 = Release|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Release|x86.ActiveCfg = Release|Any CPU + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7}.Release|x86.Build.0 = Release|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Debug|x64.ActiveCfg = Debug|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Debug|x64.Build.0 = Debug|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Debug|x86.ActiveCfg = Debug|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Debug|x86.Build.0 = Debug|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Release|Any CPU.Build.0 = Release|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Release|x64.ActiveCfg = Release|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Release|x64.Build.0 = Release|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Release|x86.ActiveCfg = Release|Any CPU + {B396A1F6-FB82-45D0-A6FC-A08C001482D2}.Release|x86.Build.0 = Release|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Debug|x64.ActiveCfg = Debug|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Debug|x64.Build.0 = Debug|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Debug|x86.ActiveCfg = Debug|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Debug|x86.Build.0 = Debug|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Release|Any CPU.Build.0 = Release|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Release|x64.ActiveCfg = Release|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Release|x64.Build.0 = Release|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Release|x86.ActiveCfg = Release|Any CPU + {54D3282E-1F25-4723-B848-FF74792B8AB8}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {DBD41D60-E728-4141-BB8C-DE940181157B} + GlobalSection(NestedProjects) = preSolution + {14A0C76E-7EC5-4F8F-8BDF-5BAB7BA6BD31} = {A611C4D5-F3F8-460B-B40B-6421CE83BDFD} + {F482C98F-3706-40FE-9CC6-FBE01C34B27D} = {14A0C76E-7EC5-4F8F-8BDF-5BAB7BA6BD31} + {4EF4ED1B-5465-4BA1-B5E0-1E06BB126E35} = {14A0C76E-7EC5-4F8F-8BDF-5BAB7BA6BD31} + {ECD95D76-F429-4CB1-AD4B-2B0C31857393} = {A611C4D5-F3F8-460B-B40B-6421CE83BDFD} + {3FF6B7CB-1B44-4BBB-A1BD-FE5E2E7D828D} = {ECD95D76-F429-4CB1-AD4B-2B0C31857393} + {152CD484-5EBC-4363-83B7-C6EFD80E9D7C} = {ECD95D76-F429-4CB1-AD4B-2B0C31857393} + {85B91BB4-DFD5-4375-90D6-D3568D2EFDE8} = {4FF2AA59-2531-4FBF-81CE-E5CC9AD2AC71} + {C10138FB-EE4A-4669-97FC-7BE132545B16} = {4FF2AA59-2531-4FBF-81CE-E5CC9AD2AC71} + {A8BBA06A-DF16-4206-9DAC-20FA9E9019A7} = {93F45711-C865-4146-BE75-B6B35631BD9B} + {B396A1F6-FB82-45D0-A6FC-A08C001482D2} = {93F45711-C865-4146-BE75-B6B35631BD9B} + {54D3282E-1F25-4723-B848-FF74792B8AB8} = {93F45711-C865-4146-BE75-B6B35631BD9B} EndGlobalSection EndGlobal diff --git a/appveyor.yml b/appveyor.yml index 4bde3ba..20ffea0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,10 +8,6 @@ image: Visual Studio 2019 cache: - '%LocalAppData%\NuGet\v3-cache' -skip_commits: - files: - - docs/* - nuget: account_feed: false project_feed: false diff --git a/docs/hubspot/basic-configuration.md b/docs/hubspot/basic-configuration.md index a8a9c91..1994fba 100644 --- a/docs/hubspot/basic-configuration.md +++ b/docs/hubspot/basic-configuration.md @@ -19,14 +19,14 @@ Additional extension methods to the `IHubSpotConfigurator` type are available an While being a higher-layer library, this library allows full access to the customization of the HubSpot client as described [earlier](../hubspot-client/configuration.md). -This can be achieved using the `AddClientConfiguration` method. +This can be achieved using the `ConfigureHubSpotClient` method. In the snippet below, we're registering all the customizations we added earlier. ```csharp services.AddHubSpot(hs => { - hs.AddClientConfiguration(client => client + hs.ConfigureHubSpotClient(client => client .SetBaseAddress(new Uri("https://localhost.temp")) .UseOAuthAuthentication(configuration.GetSection("HubSpot")) .ConfigureSerialization(settings => settings.Formatting = Newtonsoft.Json.Formatting.Indented) @@ -39,7 +39,7 @@ services.AddHubSpot(hs => ## Authentication -Since HubSpot always require any of the two supported authentication methods, convenience methods are offered to set up the authentication method without the need of using `AddClientConfiguration`. +Since HubSpot always require any of the two supported authentication methods, convenience methods are offered to set up the authentication method without the need of using `ConfigureHubSpotClient`. ```csharp services.AddHubSpot(hs => @@ -53,4 +53,4 @@ services.AddHubSpot(hs => }); ``` -The same assumptions done [earlier](../hubspot-client/configuration.md#Authentication) apply. \ No newline at end of file +The same assumptions done [earlier](../hubspot-client/configuration.md#authentication) apply. \ No newline at end of file diff --git a/samples/RawApiKey/RawApiKey.csproj b/samples/hubspot-client/ApiKeyAuthentication/ApiKeyAuthentication.csproj similarity index 91% rename from samples/RawApiKey/RawApiKey.csproj rename to samples/hubspot-client/ApiKeyAuthentication/ApiKeyAuthentication.csproj index 7fbf413..ec41e5a 100644 --- a/samples/RawApiKey/RawApiKey.csproj +++ b/samples/hubspot-client/ApiKeyAuthentication/ApiKeyAuthentication.csproj @@ -16,7 +16,7 @@ - + diff --git a/samples/RawApiKey/Program.cs b/samples/hubspot-client/ApiKeyAuthentication/Program.cs similarity index 100% rename from samples/RawApiKey/Program.cs rename to samples/hubspot-client/ApiKeyAuthentication/Program.cs diff --git a/samples/RawOAuth/RawOAuth.csproj b/samples/hubspot-client/OAuthAuthentication/OAuthAuthentication.csproj similarity index 91% rename from samples/RawOAuth/RawOAuth.csproj rename to samples/hubspot-client/OAuthAuthentication/OAuthAuthentication.csproj index eaf9f66..0df1fbf 100644 --- a/samples/RawOAuth/RawOAuth.csproj +++ b/samples/hubspot-client/OAuthAuthentication/OAuthAuthentication.csproj @@ -14,6 +14,6 @@ - + \ No newline at end of file diff --git a/samples/RawOAuth/Program.cs b/samples/hubspot-client/OAuthAuthentication/Program.cs similarity index 100% rename from samples/RawOAuth/Program.cs rename to samples/hubspot-client/OAuthAuthentication/Program.cs diff --git a/samples/ApiKey/ApiKey.csproj b/samples/hubspot/ApiKeyAuthentication/ApiKeyAuthentication.csproj similarity index 92% rename from samples/ApiKey/ApiKey.csproj rename to samples/hubspot/ApiKeyAuthentication/ApiKeyAuthentication.csproj index 7fdf981..dcb67e5 100644 --- a/samples/ApiKey/ApiKey.csproj +++ b/samples/hubspot/ApiKeyAuthentication/ApiKeyAuthentication.csproj @@ -16,7 +16,7 @@ - + diff --git a/samples/ApiKey/Program.cs b/samples/hubspot/ApiKeyAuthentication/Program.cs similarity index 100% rename from samples/ApiKey/Program.cs rename to samples/hubspot/ApiKeyAuthentication/Program.cs diff --git a/samples/OAuth/OAuth.csproj b/samples/hubspot/OAuthAuthentication/OAuthAuthentication.csproj similarity index 92% rename from samples/OAuth/OAuth.csproj rename to samples/hubspot/OAuthAuthentication/OAuthAuthentication.csproj index e9a9137..c53ae08 100644 --- a/samples/OAuth/OAuth.csproj +++ b/samples/hubspot/OAuthAuthentication/OAuthAuthentication.csproj @@ -16,6 +16,6 @@ - + diff --git a/samples/OAuth/Program.cs b/samples/hubspot/OAuthAuthentication/Program.cs similarity index 100% rename from samples/OAuth/Program.cs rename to samples/hubspot/OAuthAuthentication/Program.cs diff --git a/src/HubSpot.Client/Authentication/OAuthHubSpotAuthenticator.cs b/src/HubSpot.Client/Authentication/OAuthHubSpotAuthenticator.cs index 9c8cc26..7eca7aa 100644 --- a/src/HubSpot.Client/Authentication/OAuthHubSpotAuthenticator.cs +++ b/src/HubSpot.Client/Authentication/OAuthHubSpotAuthenticator.cs @@ -112,7 +112,7 @@ public class OAuthOptions { public string ClientId { get; set; } - public Uri RedirectUri { get; set; } + public Uri RedirectUri { get; set; } = new Uri("https://www.hubspot.com"); public string RefreshToken { get; set; } diff --git a/src/HubSpot/Configuration/HubSpotConfiguratorExtensions.cs b/src/HubSpot/Configuration/HubSpotConfiguratorExtensions.cs index 46f4e4e..2ffc942 100644 --- a/src/HubSpot/Configuration/HubSpotConfiguratorExtensions.cs +++ b/src/HubSpot/Configuration/HubSpotConfiguratorExtensions.cs @@ -12,6 +12,13 @@ namespace Microsoft.Extensions.DependencyInjection { public static class HubSpotConfiguratorExtensions { + public static IHubSpotConfigurator ConfigureHubSpotClient(this IHubSpotConfigurator configurator, Action clientConfiguration) + { + configurator.AddClientConfiguration(clientConfiguration); + + return configurator; + } + public static IHubSpotConfigurator UseContactConnector(this IHubSpotConfigurator configurator) { configurator.AddServiceConfiguration(services =>