-
Notifications
You must be signed in to change notification settings - Fork 26
Added support for Add-Ons and json content type #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| return self.post(PHONEID_RESOURCE.format(phone_number=phone_number), | ||
| **params) | ||
|
|
||
| def _execute(self, method_function, method_name, resource, **params): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer to see this incorporated into the base class RestClient function so that other endpoints can take advantage of it. If not, you need test coverage for this implementation.
telesign/phoneid.py
Outdated
| return response | ||
|
|
||
| @staticmethod | ||
| def generate_telesign_headers(customer_id, api_key, method_name, resource, json_fields, date_rfc2616=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. The point of the staticmethod is that customers can extract this in entirety and use it in their own application if they would prefer not to use the SDK. Would prefer to see these changes incorporated into the base class RestClient function. If not, you need test coverage for this implementation.
Codecov Report
@@ Coverage Diff @@
## master #11 +/- ##
==========================================
- Coverage 64.58% 56.84% -7.74%
==========================================
Files 8 7 -1
Lines 144 146 +2
Branches 9 11 +2
==========================================
- Hits 93 83 -10
- Misses 49 60 +11
- Partials 2 3 +1
Continue to review full report at Codecov.
|
No description provided.