Skip to content

A Golang client library to integrate with SuperQi backend easily

Notifications You must be signed in to change notification settings

Qi-Mobile/libsuperqi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LibSuperQi

A Golang client library to integrate with SuperQi backend easily

⚙️ Installation

go get -u github.com/qi-mobile/libsuperqi@v1.1.0

⚡️ Usage

package main

import "github.com/mouamleh/libsuperqi/superqi"

func main() {
	err := superqi.InitSuperQiClient(superqi.Config{
		ClientID:               "YOUR_CLIENT_ID",
		GatewayURL:             "", // based on ENV, check docs https://superqi-dev-docs.pages.dev/
		MerchantPrivateKeyPath: "res/private_key.pem",
		IsDebug:                false,
		Timeout:                time.Second * 25,
	})

	if err != nil {
		panic(err)
	}

	if err != nil {
		panic(err)
	}

	_, _ := client.ApplyToken("USER_AUTH_TOKEN")
	_, _ := client.InquiryUserInfo("USER_ACCESS_TOKEN")
	...
}

About

A Golang client library to integrate with SuperQi backend easily

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages