-
Notifications
You must be signed in to change notification settings - Fork 13
-
Notifications
You must be signed in to change notification settings - Fork 13
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
SendFaxMessage does not attach file. #16
Comments
If anyone else is in immediate need of a hot-fixed dependency and wants to save a little time, I applied the one-liner change and pushed it to a branch on my fork. Here's a copy/paste friendly snippet for Glide:
|
The following endpoints use
|
This is a bit more tricky because different endpoints have different MIME part names. The An enhancement to send the part name to
This is mentioned here:
It also seems like Swagger Codegen can only send one file per request. |
Opened issue for OpenAPI Generator. I posted how solving this for a single file could be done. Still need design for multiple files and multiple names. |
Closing this since it's been fixed on the |
Sending a fax file does not attach the file.
Investigation into
client.prepareRequest
seems that the Swagger generated client uses thefile
MIME part name and RingCentral needsattachment
.Here is a dump of the prepared request showing the part name
file
:Here is the code from
api_client.go
showing a hardcoded"file"
part name.https://github.com/grokify/go-ringcentral/blob/master/client/api_client.go#L242
Here's the specification in the RingCentral API Explorer requiring
attachment
https://developer.ringcentral.com/api-docs/latest/index.html#!#SendFaxMessage
Workaround
The following change has been verified to work:
Change
api_client.go
line 242 to use"attachment"
.I'll look into Swagger Codegen a bit more to resolve this issue.
The text was updated successfully, but these errors were encountered: