salesforce-marketingcloud / FuelSDK-Python

FuelSDK for python
Other
126 stars 194 forks source link

oauth2 support? #110

Open kamado-tanjiro-usa opened 5 years ago

kamado-tanjiro-usa commented 5 years ago

Hi there, doesn't look like it supports oauth 2, and in fact it's adding legacy=1 unnecessarily? legacyString = "?legacy=1"
if legacyString not in self.auth_url:
self.auth_url = self.auth_url.strip()
self.auth_url = self.auth_url + legacyString

On top of that, it's not providing 'grant_type'

It'll be nice if you guys can provide an update to the SDK so we can use it as an abstract layer over the SOAP part of the API

Thanks!

kamado-tanjiro-usa commented 5 years ago

for auth I"m seeing

            payload = {'clientId' : self.client_id, 'clientSecret' : self.client_secret, 'refreshToken' : self.refreshKey, 'accessType': 'offline'}

there is no grant_type

so when'll we get support for v2?

kamado-tanjiro-usa commented 5 years ago

line 201