line-account
![GitHub](https://img.shields.io/github/license/5h10n/line-account?color=blue)
Installation
$ go get -u github.com/5h10n/line-account
example
Country code ex)
japan: JP, UnitedKingdom: GB, UnitedStates: US, Indonesia: ID etc...
package main
import (
"fmt"
"log"
"github.com/5h10n/line-account/auth"
)
func main() {
client, err := auth.New()
if err != nil {
log.Fatal(err)
}
authKey, err := client.GenerateLineAccount("xxxxxxxxxxx","JP")
if err != nil {
log.Fatal(err)
}
fmt.Println("authToken:", authKey)
}
Service Detail
- PrimaryAccountInitService
- exchangeEncryptionKey
- getAcctVerifMethod
- getCountryInfo
- getPhoneVerifMethod
- getSecondAuthMethod
- getSessionContentBeforeMigCompletion
- getUserProfile
- issueWebAuthDetailsForSecondAuth
- issueWebAuthDetailsForAcctVerif
- migratePrimaryUsingEapAccountV2
- migratePrimaryUsingPhoneV2
- openSession
- registerPrimaryUsingPhone
- registerPrimaryUsingSocialLogin
- sendPinCodeForPhone
- setPassword
- validateProfile
- verifyAccountUsingPwd
- verifyPhone
- verifySocialLogin