File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ You can always check your remaining seconds programmatically by fetching [user i
8484
8585``` go
8686user , err := convertapi.UserInfo (nil )
87- secondsLeft := user.SecondsLeft
87+ conversionsTotal := user.ConversionsTotal
88+ conversionsConsumed := user.ConversionsConsumed
8889```
8990
9091### Alternative domain
Original file line number Diff line number Diff line change @@ -51,5 +51,6 @@ func TestUserInfo(t *testing.T) {
5151 user , err := convertapi .UserInfo (nil )
5252
5353 assert .Nil (t , err )
54- assert .NotEmpty (t , user .SecondsLeft )
54+ assert .NotEmpty (t , user .ConversionsTotal )
55+ assert .NotEmpty (t , user .ConversionsConsumed )
5556}
Original file line number Diff line number Diff line change @@ -9,13 +9,14 @@ import (
99)
1010
1111type User struct {
12- Active bool
13- ApiKey int
14- Email string
15- FullName string
16- SecondsLeft int
17- Secret string
18- Status string
12+ Active bool
13+ ApiKey int
14+ Email string
15+ FullName string
16+ ConversionsTotal int
17+ ConversionsConsumed int
18+ Secret string
19+ Status string
1920}
2021
2122func UserInfo (conf * config.Config ) (user * User , err error ) {
You can’t perform that action at this time.
0 commit comments