{"id":32191586,"url":"https://github.com/rynaro/postmon-clj","last_synced_at":"2025-10-22T01:43:47.824Z","repository":{"id":62434259,"uuid":"232802249","full_name":"Rynaro/postmon-clj","owner":"Rynaro","description":"Clojure wrapper for PostmonAPI","archived":false,"fork":false,"pushed_at":"2020-01-13T14:44:25.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T01:43:47.370Z","etag":null,"topics":["api-wrapper","postmon","zipcode-data"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rynaro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-09T12:19:32.000Z","updated_at":"2020-01-13T14:44:27.000Z","dependencies_parsed_at":"2022-11-01T21:02:17.182Z","dependency_job_id":null,"html_url":"https://github.com/Rynaro/postmon-clj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rynaro/postmon-clj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rynaro%2Fpostmon-clj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rynaro%2Fpostmon-clj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rynaro%2Fpostmon-clj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rynaro%2Fpostmon-clj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rynaro","download_url":"https://codeload.github.com/Rynaro/postmon-clj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rynaro%2Fpostmon-clj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280365580,"owners_count":26318385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","postmon","zipcode-data"],"created_at":"2025-10-22T01:43:43.160Z","updated_at":"2025-10-22T01:43:47.818Z","avatar_url":"https://github.com/Rynaro.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postmon-clj\n[![Clojars Project](https://img.shields.io/clojars/v/postmon.svg)](https://clojars.org/postmon)\n[![Build Status](https://travis-ci.com/Rynaro/postmon-clj.svg?branch=master)](https://travis-ci.com/Rynaro/postmon-clj)\n\n\u003e Simple wrapper for PostmonAPI\n\n## Installation\n\nInclude into your `project.clj`\n\n```clj\n[postmon \"1.0.0\"]\n```\n\n## Usage\n\n### Getting CEP (zipcode)\n\n```clj\n(postmon/cep \"02013010\")\n```\n\nYou'll get a map with CEP especification.\n\n```clj\n{:bairro \"Santana\", :cidade \"São Paulo\", :logradouro \"Rua Henrique Bernardelli\", :estado_info {:area_km2 \"248.221,996\", :codigo_ibge \"35\", :nome \"São Paulo\"}, :cep \"02013010\", :cidade_info {:area_km2 \"1521,11\", :codigo_ibge \"3550308\"}, :estado \"SP\"}\n```\n\n_Note: You don't need to format your CEP, you can use unformatted CEP string._\n\n### Getting City Information\n\n```clj\n(postmon/city-data \"SP\" \"Leme\")\n```\n\n```clj\n{:area_km2 \"402,871\", :codigo_ibge \"3526704\"}\n```\n\n### Getting UF (state) Information\n\n```clj\n(postmon/uf-data \"SP\")\n```\n\n```clj\n{:area_km2 \"248.221,996\", :codigo_ibge \"35\", :nome \"São Paulo\"}\n```\n\n### Getting object package deliver tracking\n\n```clj\n(postmon/pack-deliver-tracker \"ect\" \"mocked\")\n```\n\n```clj\n  {:codigo \"mocked\" :service \"ect\" :historico {:local \"AG Liberdade - Sao Paulo/SP\" :data \"02/01/2020 13:23:03\" :situacao \"Postado\"}}\n```\n\n_Note: Postmon only supports ECT (Correios - Empresa Brasileira de Correios e Telegrafos) yet!_\n\n#### Exceptions\n\nIn case your query does return nothing from Postmon services, you will get a custom exception from slingshot! There is the exception for handling.\n\n```clj\n{:type :postmon.request/nothing-returned :message \"nothing returned from postmon\"}\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Rynaro/postmon-clj.\n\n## License\n\nThe lib is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frynaro%2Fpostmon-clj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frynaro%2Fpostmon-clj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frynaro%2Fpostmon-clj/lists"}