-
Notifications
You must be signed in to change notification settings - Fork 62
/
types.go
29 lines (25 loc) · 1.04 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package handlers
// LoginRequestBodyData represents Request body for password based login request
type LoginRequestBodyData struct {
// Username or mobile number of Jio account
Username string `json:"username" xml:"username" form:"username"`
// Password of Jio account
Password string `json:"password" xml:"password" form:"password"`
}
// LoginSendOTPRequestBodyData represents Request body for OTP based login request
type LoginSendOTPRequestBodyData struct {
// Mobile number of Jio account
MobileNumber string `json:"number" xml:"number" form:"number"`
}
// LoginVerifyOTPRequestBodyData represents Request body for OTP verification request
type LoginVerifyOTPRequestBodyData struct {
// Mobile number of Jio account
MobileNumber string `json:"number" xml:"number" form:"number"`
// OTP received on mobile number
OTP string `json:"otp" xml:"otp" form:"otp"`
}
// RefreshTokenResponse represents Response body for refresh token request
type RefreshTokenResponse struct {
// Access token for JioTV API
AccessToken string `json:"authToken"`
}