Skip to content
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

output.py: new class RequestOption #77

Open
SibrenJacobs opened this issue May 23, 2022 · 0 comments
Open

output.py: new class RequestOption #77

SibrenJacobs opened this issue May 23, 2022 · 0 comments

Comments

@SibrenJacobs
Copy link

In the class OutputConfig there is a new property 'request_option'. If this is specified then COP makes a call to the given option with response/output of the current request.

JSON representation:

"output": {
    "output_type": "docx",
    "output_encoding": "raw",
    "request_option": {
      "url": "https://www.apexofficeprint.com/post/",
      "extra_headers": {
        "file_id" : "Any file id like FILE_123",
        "access_token": "Access Token for above hostname (if any)"
      }
    }
  • url : valid url to which the output will be posted. It should start with http:// or https://
  • extra_headers: any additional information to be included for the header, like authentication token, file id , access token etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant