adgen
Version, currently 0.4.48 versions
github.com/maiha/adgen.cr
No description declared in shard.yml.
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
adgen:
github: maiha/adgen.cr
version: ~> 0.4.4Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- maiha
- Targets
adgenfrom src/cli/bin/adgen.cradgen-devfrom src/cli/bin/adgen.cr
Dependencies
Runtime Dependencies
- var*github: maiha/var.cr
- curl*github: maiha/curl.cr
- pretty>= 1.1.2github: maiha/pretty.cr
- protobuf-storage0.3.7github: maiha/protobuf-storage.cr
Development Dependencies
- cmds*github: maiha/cmds.crdev
- opts*github: maiha/opts.crdev
- shell*github: maiha/shell.crdev
- clickhouse0.5.8github: maiha/clickhouse.crdev
- toml-config0.6.1github: maiha/toml-config.crdev
README
adgen.cr 
adgen for Crystal.
- crystal: 0.33.0
Usage (batch)
- setup config
$ adgen config sample > .adgenrc
$ vi .adgenrc
[api]
email = "..."
password = "..."
[batch]
publisher_ids = [3]
- run
$ adgen batch run today
Usage (lib)
Installation
- Add the dependency to your
shard.yml:
dependencies:
adgen:
github: maiha/adgen.cr
version: 0.4.4
- Run
shards install
example
require "adgen"
# generate token
client = Adgen::Client.new
token = client.authorize!("user.name@example.com", "password")
token.value # => "eyJ0..."
# call api
client = Adgen::Client.new(token: "xxxxxx") # "xxxxxx" is a token value
res = client.get("/api/v2/report/performances")
puts res.body
Development
test
$ make test
build
$ make
Contributing
- Fork it (https://github.com/maiha/adgen.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- maiha - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.4- Tagged
- Oct 28, 2025
- Commit
41f6cd3a5aea- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/maiha/adgen.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 8