Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Missing params#51

Merged
martinytodorov merged 18 commits intov3from
Missing-Params
Dec 3, 2019
Merged

Missing params#51
martinytodorov merged 18 commits intov3from
Missing-Params

Conversation

@jyoung488
Copy link
Contributor

Added in most parameters and endpoints
Resolves #43, #27, #17

return request.get(self.SIGNATURE_REQUEST_LIST_URL, parameters=parameters)

def get_signature_request_file(self, signature_request_id, path_or_file=None, file_type=None, filename=None):
def get_signature_request_file(self, signature_request_id, path_or_file=None, file_type=None, filename=None, get_url=False, get_data_uri=False):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can one actually do both? if not, maybe pass in string constants for response format?

# def get_template_files(self, template_id):
def get_template_files(self, template_id, filename):
''' Download a PDF copy of a template's original files
def get_template_files(self, template_id, path_or_file=None, file_type=None,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could potentially use the same response type constants?

Copy link

@michaelnlindsay michaelnlindsay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, lotta work here, Thanks for adding comments and cleaning up 👍

I'm wondering about a collection of properties that seems to have been added throughout. eg.

            "allow_decline": self._boolean(allow_decline),
            "skip_me_now": self._boolean(skip_me_now),
            "allow_decline": self._boolean(allow_decline),
            "allow_reassign": self._boolean(allow_reassign),
            "signing_options": json.dumps(signing_options)

Should these be encapsulated into a new object like request_options that can be passed around instead of all the individual settings?

I'll approve because my comments are more opinion based, your code changes look clean and like they'll behave as intended.


return json_response if get_json is True else response

def delete(self, url, headers=None):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete what?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one's just adding a generic delete function to be able to make these kinds of requests since this SDK's only been able to make get and post requests before

Copy link

@michaelnlindsay michaelnlindsay Nov 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, would it be worth adding some guidance in comments about what object types can be deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call! i added some detail to the comments

@jyoung488
Copy link
Contributor Author

jyoung488 commented Nov 25, 2019

@michaelnlindsay I made the changes to the response_type param and I agree with creating a new request_options object, but maybe in another PR (and by someone with more Python experience :P)

@michaelnlindsay
Copy link

lgtm!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

send_with_template endpoint should add file[] or file_url[] as supported params

4 participants