Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (27 loc) · 722 Bytes

CONTRIBUTING.md

File metadata and controls

35 lines (27 loc) · 722 Bytes

Contribution

Welcome programmer!

If you want to contribute to Goinsta API you must follow a simple instructions.

  • Test your code after making pull request. The title says it all.
  • Include jokes if you can. This instruction is optional.

Tests

You need at least one goinsta exported object

package main

import (
	"fmt"
	"github.com/ahmdrz/goinsta/v2"
	"github.com/ahmdrz/goinsta/v2/utilities"
)

func main() {
	inst := goinsta.New("user", "password")
	err := inst.Login()
	if err != nil {
		fmt.Fatal(err)
	}
	fmt.Print(utilities.ExportAsBase64String(inst))
}

Then you can use the output generated above to run your tests in the cli

INSTAGRAM_BASE64_USERNAME=BASE64_OUTPUT go test ./...