-
Notifications
You must be signed in to change notification settings - Fork 15
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
MultipartStream usage in uploadTransientDocument() method. #1
Comments
I was able to get this to work using the example here: https://github.com/guzzle/psr7/blob/master/tests/MultipartStreamTest.php#L97 |
Hey @trip-somers, Getting the same kind of issue here. Could you post the complete example of how you create the MultipartStream and call Thanks a lot! |
Here is my full solution:
My method call is inside a service class in which NOTE: I can't remember if this is related to the uploadTransientDocument() problems I had, but you will likely also have to update the API's parseResponse() method. A few (or several, depending on your usage/perspective) API calls return a response code of 'OK' or something like 'ALREADY_DISABLED'. The distribution version of this method throws an exception for any response code that isn't 'INVALID_ACCESS_TOKEN', 'UNSUPPORTED_MEDIA_TYPE', or 'MISSING_REQUIRED_PARAM'. You obviously don't want an exception for 'OK', so you will need to set up some way to handle this. Here is what I did for that:
|
Thanks so much for the quick and extended response ! I'll look into that a bit later. |
No problem. I had to jump into those files again today so your timing was pretty convenient. |
Hi @trip-somers, Thank you for the complete solution. It works great on our side! |
Add example for transient document upload.
Hi @trip-somers I'm trying to upload a document but it says
Please help me to solve this. |
Hello, how I send two documents to sign? for example i have this code
help me please!!!! |
I have tried a bunch of ways to get this to work using a file system file and nothing seems to work. Guzzle is short on documentation for this, but here's what I've tried:
As far as I can tell, that looks correct, but I get
BAD_REQUEST
response code.Can you point me in the right direction?
The text was updated successfully, but these errors were encountered: