Skip to content

An unofficial Alelo API implementation to get Card's balances

License

Notifications You must be signed in to change notification settings

caarlos0-graveyard/alelogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alelo-go Build Status SayThanks.io

An unofficial Alelo API implementation to get Card's balances.

import (
  "log"

  "github.com/caarlos0/alelogo"
)

func main() {
  cpf := "123456789-10"
  pwd := "s3cr3t"
  client, err := alelogo.New(cpf, pwd)
	if err != nil {
		log.Fatalln(err.Error())
	}
	cards, err := client.Cards()
	if err != nil {
		log.Fatalln(err.Error())
	}
	for _, card := range cards {
		result, err := client.Details(card)
		if err != nil {
			log.Fatalln(err.Error())
		}
		log.Println(result)
	}
}

Why?

Because I hate their Android app. So I hacked their website to see how it works, created this lib and then used it to create a Telegram bot, so I can finally uninstall that piece of crappy software.

About

An unofficial Alelo API implementation to get Card's balances

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages