Skip to content

Fix some README typos #8

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ $response = $spryng->message->send($message);
if ($response->wasSuccessful())
{
$message = $response->toObject();
echo "Message with ID " . $message->getId() . " was send successfully!\n";
echo "Message with ID " . $message->getId() . " was sent successfully!\n";
}
else if ($response->serverError())
{
echo "Message could not be send because of a server error...\n";
echo "Message could not be sent because of a server error...\n";
}
else
{
echo "Message could not be send. Response code: " . $response->getResponseCode() ."\n";
echo "Message could not be sent. Response code: " . $response->getResponseCode() ."\n";
}
```

Expand All @@ -73,7 +73,7 @@ if ($resposne->wasSuccessful())

### Listing messages

You can list the messages you have send in a paginated manner. You can also apply filters to get a sub-set of the messages you have send:
You can list the messages you have send in a paginated manner. You can also apply filters to get a sub-set of the messages you have sent:

```php
use Spryng\SpryngRestApi\Objects\Message;
Expand All @@ -97,7 +97,7 @@ if ($response->wasSuccessful())

foreach ($messages->getData() as $message)
{
echo sprintf("ID: %s ('%s') send on: %s\n",
echo sprintf("ID: %s ('%s') sent on: %s\n",
$message->getId(),
$message->getBody(),
$message->getCreatedAt()
Expand Down