Skip to content

Beamer64/godagpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

godagpi

Go wrapper for Dagpi API. All functions should have a small description even its vague (copy pasta from the Docs) and a link to the call in the documentation.

New API Routes, Descriptions and links to Documentation will be updated as soon as I'm aware of them.

Import godagpi to your project:

go get github.com/beamer64/godagpi/dagpi

Incase you need to update:

go get -u github.com/beamer64/godagpi/dagpi

Initialize your client with

var client = dagpi.Client{Auth: "api token"}

Api Documentation can be found here.

Example

import (
	"fmt"
	"github.com/beamer64/godagpi/dagpi"
	"log"
)

func main() {
	var client = dagpi.Client{Auth: "API Token"}

	data, err := client.Roast()
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(data)
}

Functions - Data | Returns Interface of Data

  • dagpi.WTP / Who's That Pokemon
  • dagpi.Roast
  • dagpi.Joke
  • dagpi.Fact
  • dagpi.Eightball
  • dagpi.Yomama
  • dagpi.RandomWaifu
  • dagpi.Waifu
  • dagpi.PickupLine
  • dagpi.HeadLine
  • dagpi.GTL / Guess The Logo
  • dagpi.Flag
  • dagpi.Captcha
  • dogpi.Typeracer

Functions - Image Manip | Returns Image Buffer/Bytes []byte

Intintionally slipped calls:

- Gay (Included in Pride Call)
- Captcha (Captcha call in Data)
- Disolve (problems with the call)
  • dagpi.Pixelate(imageUrl: https://imghost.com/img) Do the same for all image manip funcs.
  • dagpi.Mirror
  • dagpi.FlipImage
  • dagpi.Colors
  • dagpi.America
  • dagpi.Communism
  • dagpi.Triggered
  • dagpi.ExpandImage
  • dagpi.Wasted
  • dagpi.Sketch
  • dagpi.Spin
  • dagpi.PetPet
  • dagpi.Bonk
  • dagpi.Bomb
  • dagpi.Shake
  • dagpi.Invert
  • dagpi.Sobel
  • dagpi.Hog
  • dagpi.Triangle
  • dagpi.Blur
  • dagpi.RGB
  • dagpi.Angel
  • dagpi.Satan
  • dagpi.Delete
  • dagpi.Fedora
  • dagpi.Hitler
  • dagpi.Lego
  • dagpi.Wanted
  • dagpi.Stringify
  • dagppi.Burn
  • dagpi.Earth
  • dagpi.Freeze
  • dagpi.Ground
  • dagpi.Mosiac
  • dagpi.Sithlord
  • dagpi.Jail
  • dagpi.Shatter
  • dagpi.Pride(imageUrl, flag) acceptable Flags are listed in function
  • dagpi.Trash
  • dagpi.Deepfry
  • dagpi.Ascii
  • dagpi.Charcoal
  • dagpi.Posterize
  • dagpi.Sepia
  • dagpi.Swirl
  • dagpi.Paint
  • dagpi.Night
  • dagpi.Rainbow
  • dagpi.Magik
  • dagpi.Elmo
  • dagpi.TVStatic
  • dagpi.Rain
  • dagpi.Glitch
  • dagpi.StaticGlitch
  • dagpi.Album
  • dagpi.FivegOneg(imageUrl1, imageUrl2) / Five Guys One Girl
  • dagpi.WhyAreYouGay(imageUrl1, imageUrl2)
  • dagpi.Slap(imageUrl1, imageUrl2)
  • dagpi.Oboma(imageUrl1, imageUrl2)
  • dagpi.Tweet(imageUrl, username, text)
  • dagpi.Youtube(imageUrl, username, text, darkMode: boolean)
  • dagpi.Discord(imageUrl, username, text, darkMode: boolean)
  • dagpi.Retromeme(imageUrl, topText, bottomText)
  • dagpi.Motivational(imageUrl, topText, bottomText)
  • dagpi.Modernmeme(imageUrl, text)

About

API Wrapper for dagpi

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages