Skip to content

Commit 845d077

Browse files
Merge pull request #70 from ConvertAPI/feature/seconds-left-deprecated
Replace deprecated SecondsLeft property
2 parents c4e8cee + bd27243 commit 845d077

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,12 @@ var resultPromise = convertapi.convert(
125125

126126
### User information
127127

128-
You can always check your remaining seconds amount programmatically by fetching [user information](https://www.convertapi.com/doc/user).
128+
You can always check your conversion counts by fetching [user information](https://www.convertapi.com/doc/user).
129129

130130
```javascript
131131
convertapi.getUser().then(function(info) {
132-
console.log("Seconds left: " + info.SecondsLeft);
132+
console.log("ConversionsTotal: " + info.ConversionsTotal);
133+
console.log("ConversionsConsumed: " + info.ConversionsConsumed);
133134
});
134135
```
135136

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@ describe('ConvertAPI', () => {
151151
it('fetches user info', () => {
152152
const result = api.getUser();
153153

154-
return expect(result).to.eventually.have.property('SecondsLeft');
154+
return expect(result).to.eventually.have.property('ConversionsConsumed');
155155
});
156156
});

0 commit comments

Comments
 (0)