api docs: Change Shakespeare quote.

The previous quote doesn't come off well if you don't know the reference
(which the majority of our users will not).
This commit is contained in:
Rishi Gupta
2018-10-22 15:42:54 -07:00
parent b4f95aa124
commit 1c264dedc5
4 changed files with 14 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -29,7 +29,7 @@ zulip(config).then((client) => {
to: 'Denmark',
type: 'stream',
subject: 'Castle',
content: 'Something is rotten in the state of Denmark.'
content: 'I come not, friends, to steal away your hearts.'
}
client.messages.send(params).then(console.log);
@@ -41,7 +41,7 @@ zulip(config).then((client) => {
const params = {
to: 'hamlet@example.com',
type: 'private',
content: 'I come not, friends, to steal away your hearts.',
content: 'With mirth and laughter let old wrinkles come.',
}
client.messages.send(params).then(console.log);
@@ -58,14 +58,14 @@ curl {{ api_url }}/v1/messages \
-d "type=stream" \
-d "to=Denmark" \
-d "subject=Castle" \
-d $"content=Something is rotten in the state of Denmark."
-d $"content=I come not, friends, to steal away your hearts."
# For private messages
curl {{ api_url }}/v1/messages \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
-d "type=private" \
-d "to=hamlet@example.com" \
-d $"content=I come not, friends, to steal away your hearts."
-d $"content=With mirth and laughter let old wrinkles come."
```
{tab|zulip-send}
@@ -92,7 +92,7 @@ If you'd like, you can also provide the message on the command-line with the
```bash
zulip-send --stream Denmark --subject Castle \
--message "Something is rotten in the state of Denmark." \
--message "I come not, friends, to steal away your hearts." \
--user othello-bot@example.com --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5
```

View File

@@ -451,7 +451,7 @@ def send_message(client):
"type": "stream",
"to": "Denmark",
"subject": "Castle",
"content": "Something is rotten in the state of Denmark."
"content": "I come not, friends, to steal away your hearts."
}
result = client.send_message(request)
# {code_example|end}
@@ -473,7 +473,7 @@ def send_message(client):
request = {
"type": "private",
"to": "iago@zulip.com",
"content": "I come not, friends, to steal away your hearts."
"content": "With mirth and laughter let old wrinkles come."
}
result = client.send_message(request)
# {code_example|end}
@@ -498,7 +498,7 @@ def test_nonexistent_stream_error(client):
"type": "stream",
"to": "nonexistent_stream",
"subject": "Castle",
"content": "Something is rotten in the state of Denmark."
"content": "I come not, friends, to steal away your hearts."
}
result = client.send_message(request)
@@ -510,7 +510,7 @@ def test_private_message_invalid_recipient(client):
request = {
"type": "private",
"to": "eeshan@zulip.com",
"content": "I come not, friends, to steal away your hearts."
"content": "With mirth and laughter let old wrinkles come."
}
result = client.send_message(request)
@@ -551,7 +551,7 @@ def test_update_message_edit_permission_error(client, nonadmin_client):
"type": "stream",
"to": "Denmark",
"subject": "Castle",
"content": "Something is rotten in the state of Denmark."
"content": "I come not, friends, to steal away your hearts."
}
result = client.send_message(request)
@@ -581,7 +581,7 @@ def test_delete_message_edit_permission_error(client, nonadmin_client):
"type": "stream",
"to": "Denmark",
"subject": "Castle",
"content": "Something is rotten in the state of Denmark."
"content": "I come not, friends, to steal away your hearts."
}
result = client.send_message(request)
@@ -618,7 +618,7 @@ def update_message_flags(client):
"type": "stream",
"to": "Denmark",
"subject": "Castle",
"content": "Something is rotten in the state of Denmark."
"content": "I come not, friends, to steal away your hearts."
} # type: Dict[str, Any]
message_ids = []
for i in range(0, 3):

View File

@@ -104,7 +104,7 @@ paths:
"message": {
"avatar_url": "https://url/for/othello-bots/avatar",
"client": "website",
"content": "Something is rotten in the state of Denmark.",
"content": "I come not, friends, to steal away your hearts.",
"content_type": "text/x-markdown",
"display_recipient": "Denmark",
"id": 12345678,
@@ -126,7 +126,7 @@ paths:
"message": {
"avatar_url": "https://url/for/othello-bots/avatar",
"client": "website",
"content": "I come not, friends, to steal away your hearts.",
"content": "With mirth and laughter let old wrinkles come.",
"content_type": "text/x-markdown",
"display_recipient": [
{