mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
integ-docs: Update the sample site URLs and bot emails.
To use the appropriate context properties. This commit does not touch the integration docs that do not use the new integration doc format, as this update will be included in their format update sweep.
This commit is contained in:
@@ -20,8 +20,8 @@ Get Zulip notifications for your Capistrano deploys!
|
||||
desc "Post a message to Zulip after deploy"
|
||||
task :humbug do
|
||||
run_locally "echo 'I just deployed to #{stage}! :tada:' | zulip-send \
|
||||
--user capistrano-bot@example.com --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
|
||||
--site={{ api_url }} \
|
||||
--user capistrano-bot@{{ display_host }} --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
|
||||
--site={{ zulip_url }} \
|
||||
--stream commits --subject deployments || true"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -18,8 +18,8 @@ Use Hubot to execute scripts and commands within Zulip!
|
||||
information of the bot you created, by running:
|
||||
|
||||
```
|
||||
export HUBOT_ZULIP_SITE="{{ api_url }}"
|
||||
export HUBOT_ZULIP_BOT="hubot-bot@example.com"
|
||||
export HUBOT_ZULIP_SITE="{{ zulip_url }}"
|
||||
export HUBOT_ZULIP_BOT="hubot-bot@{{ zulip_url }}"
|
||||
export HUBOT_ZULIP_API_KEY="<your_key>"
|
||||
```
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ following lines to specify the email address and API key for your
|
||||
{{ integration_display_name }} bot:
|
||||
|
||||
```
|
||||
ZULIP_USER = "{{ integration_name }}-bot@example.com"
|
||||
ZULIP_USER = "{{ integration_name }}-bot@{{ display_host }}"
|
||||
ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
|
||||
ZULIP_SITE = "{{ zulip_url }}"
|
||||
```
|
||||
|
||||
@@ -23,13 +23,13 @@ integration](/api/incoming-webhooks-walkthrough).
|
||||
(zulip-server) vagrant@vagrant:/srv/zulip$
|
||||
./manage.py send_webhook_fixture_message \
|
||||
> --fixture=zerver/tests/fixtures/helloworld/hello.json \
|
||||
> '--url=http://localhost:9991/api/v1/external/helloworld?api_key=abcdefgh&stream=channel%20name;'
|
||||
> '--url=http://localhost:9991/api{{ integration_url }}?api_key=abcdefgh&stream=channel%20name;'
|
||||
```
|
||||
|
||||
Or, use curl:
|
||||
|
||||
```
|
||||
curl -X POST -H "Content-Type: application/json" -d '{ "featured_title":"Marilyn Monroe", "featured_url":"https://en.wikipedia.org/wiki/Marilyn_Monroe" }' http://localhost:9991/api/v1/external/helloworld\?api_key=abcdefgh&stream=channel%20name;
|
||||
curl -X POST -H "Content-Type: application/json" -d '{ "featured_title":"Marilyn Monroe", "featured_url":"https://en.wikipedia.org/wiki/Marilyn_Monroe" }' http://localhost:9991/api{{ integration_url }}?api_key=abcdefgh&stream=channel%20name;
|
||||
```
|
||||
|
||||
{end_tabs}
|
||||
|
||||
Reference in New Issue
Block a user