I believe that HubSpot API can use an API key or OAuth.
The initial port will have the API key integration. OAuth can stagger.
This could mean a soft dependency to oauth or simple_oauth. I would start with simple_oauth since it's specific for OAuth 2.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff.txt | 3.32 KB | thejacer87 |
| #7 | hubspot_api-oauth-connection-2952048-7.patch | 16.85 KB | thejacer87 |
| #4 | Screen Shot 2019-02-26 at 10.18.48 AM.png | 127.1 KB | shabana.navas |
| #3 | hubspot_api-oauth-connection-2952048-3.patch | 16.8 KB | thejacer87 |
Comments
Comment #2
thejacer87 commentedjust about to implement this, correct me if im wrong, but it looks like those modules turn the drupal site into an oauth server. they don't enable connecting to a 3rd party api and saving tokens from said service.
ill work on porting the current implementation from the d7 module, and we can go from there
Comment #3
thejacer87 commentedthis patch needs https://www.drupal.org/project/hubspot_api/issues/2958254#comment-12780345 first, and is based off of that.
Comment #4
shabana.navas commentedOauth works beautifully. Great job!
Comment #5
shabana.navas commentedJust some small nitpicks:
Change MyController to OAuth
This 'if' doesn't make sense. Should it be || instead of &&?
Nitpick, but shouldn't we be using $this->t() here?
Comment #6
shabana.navas commentedComment #7
thejacer87 commentedupdated patch with the fixes
Comment #8
shabana.navas commentedComment #9
volkswagenchickComment #11
thejacer87 commentedmerged in.
made an alpha2 release
Comment #12
thejacer87 commented