File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
130130convertapi .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
Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments