Skip to content

doc: add instructions on accessing service argument#1419

Merged
Zen-CODE merged 1 commit into
masterfrom
doc_service_arg
Oct 21, 2018
Merged

doc: add instructions on accessing service argument#1419
Zen-CODE merged 1 commit into
masterfrom
doc_service_arg

Conversation

@Zen-CODE

Copy link
Copy Markdown
Member

Adds explanation and sample code on how to extract the service argument from within the service.

@AndreMiras

Copy link
Copy Markdown
Member

Sweet! I'll give it a try just now before approving

@AndreMiras AndreMiras self-assigned this Oct 21, 2018

@AndreMiras AndreMiras left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

works like a charm, well done!

Comment thread doc/source/services.rst
The service argument is made available to your service via the
'PYTHON_SERVICE_ARGUMENT' environment variable. It is exposed as a simple
string, so if you want to pass in multiple values, we would recommend using
the json module to encode and decode mode complex data.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

"more complex data" instead of "mode complex data"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

fixed in #1423

@Zen-CODE Zen-CODE merged commit a73b507 into master Oct 21, 2018
@Zen-CODE Zen-CODE deleted the doc_service_arg branch October 21, 2018 15:58
@Zen-CODE

Zen-CODE commented Oct 21, 2018 via email

Copy link
Copy Markdown
Member Author

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

Successfully merging this pull request may close these issues.

3 participants