Skip to content

Commit 4a4ad69

Browse files
Update usage example (#63)
1 parent 12ee172 commit 4a4ad69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ $result = ConvertApi::convert(
111111

112112
### User information
113113

114-
You can always check your remaining seconds amount programmatically by fetching [user information](https://www.convertapi.com/doc/user).
114+
You can always check your usage by fetching [user information](https://www.convertapi.com/doc/user).
115115

116116
```php
117117
$info = ConvertApi::getUser();
118118

119-
echo $info['SecondsLeft'];
119+
echo $info['ConversionsConsumed'];
120120
```
121121

122122
### Alternative domain

tests/ConvertApi/ConvertApiTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testGetUser()
4545
$user_info = ConvertApi::getUser();
4646

4747
$this->assertIsArray($user_info);
48-
$this->assertArrayHasKey('SecondsLeft', $user_info);
48+
$this->assertArrayHasKey('ConversionsConsumed', $user_info);
4949
}
5050

5151
public function testUploadFile()

0 commit comments

Comments
 (0)