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 @@ -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
131131convertapi .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
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