Documentation ¶
Index ¶
- Variables
- type MoneyLinkInfo
- type Options
- type PayPay
- func (paypay *PayPay) AcceptMoneyLink(info *MoneyLinkInfo, passcode *string) error
- func (paypay *PayPay) CreateMoneyLink(amount int64, passcode *string) (*string, error)
- func (paypay *PayPay) GetLinkInfo(verificationCode string) (*MoneyLinkInfo, error)
- func (paypay *PayPay) GetWalletAmount() (int64, error)
- func (paypay *PayPay) OAuth2Authorize(requestUri string) error
- func (paypay *PayPay) OAuth2Par() (string, error)
- func (paypay *PayPay) OAuth2Token(code string) (string, string, error)
- func (paypay *PayPay) SignIn() error
- func (paypay *PayPay) VerifyOTP(otp string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FastJson = jsoniter.ConfigCompatibleWithStandardLibrary BrowserAgent = "" /* 157-byte string literal not displayed */ BrowserHeaders = map[string]string{ "pragma": "no-cache", "cache-control": "no-cache", "client-os-version": "28.0.0", "accept": "application/json, text/plain, */*", "client-app-load-start": "1705238512740", "client-os-type": "ANDROID", "client-id": "pay2-mobile-app-client", "client-type": "PAYPAYAPP", "origin": "https://www.paypay.ne.jp", "x-requested-with": "jp.ne.paypay.android.app", "sec-fetch-site": "same-origin", "sec-fetch-mode": "cors", "sec-fetch-dest": "empty", "accept-encoding": "gzip, deflate", "accept-language": "ja-JP,ja;q=0.9,en-US;q=0.8,en;q=0.7", } AppHeaders = map[string]string{ "client-os-type": "ANDROID", "device-name": "SM-G977N", "client-os-version": "28.0.0", "client-os-release-version": "9", "client-type": "PAYPAYAPP", "accept-encoding": "gzip", } )
Functions ¶
This section is empty.
Types ¶
type MoneyLinkInfo ¶
type Options ¶
type Options struct { Proxy string Language string AppVersion string ClientUUID string PhoneNumber string Password string }
func (*Options) ParseProxy ¶
type PayPay ¶
type PayPay struct { HttpClient *http.Client Options *Options BrowserAgent string AppAgent string DeviceUUID string ExtensionId string Verifier string Challenge string AccessToken string RefreshToken string }
func (*PayPay) AcceptMoneyLink ¶
func (paypay *PayPay) AcceptMoneyLink(info *MoneyLinkInfo, passcode *string) error
func (*PayPay) CreateMoneyLink ¶
func (*PayPay) GetLinkInfo ¶
func (paypay *PayPay) GetLinkInfo(verificationCode string) (*MoneyLinkInfo, error)
func (*PayPay) GetWalletAmount ¶
func (*PayPay) OAuth2Authorize ¶
func (*PayPay) OAuth2Par ¶
OAuth2Par https://qiita.com/TakahikoKawasaki/items/97563be46b62a0e02fe6
Click to show internal directories.
Click to hide internal directories.