Skip to content

teampook/zirael

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zirael

Description

Zirael is HTTP Client that wrap your request with AMX authorization header

Installation

go get -u github.com/teampook/zirael

Usage

Importing the package

import "github.com/teampook/zirael"

Sample GET request

client := zirael.NewClient(
		"YOUR_API_KEY",
		"YOUR_API_ID",
		"YOUR_NONCE", zirael.WithHTTPTimeout(10 * time.Second))

	request, err := client.Get("https://awsome.com", nil)

	if err != nil {
		panic(err)
	}

	fmt.Println(request)

	body, err := ioutil.ReadAll(request.Body)

	if err != nil {
		panic(err)
	}

	fmt.Println(string(body))

Thanks

Inspiration from Heimdal An enhanced HTTP client for Go by Gojek

Authors: Arif Rakhman -- [https://github.com/arieefrachman]

About

HTTP client with AMX authorization header

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages