Skip to content

Commit bd27243

Browse files
author
Laurynas Butkus
committed
Replace deprecated SecondsLeft property
1 parent d211bb8 commit bd27243

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
@@ -124,11 +124,12 @@ var resultPromise = convertapi.convert(
124124

125125
### User information
126126

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

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

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)