{"id":19340299,"url":"https://github.com/edumats/loja-integrada-wrapper","last_synced_at":"2026-06-13T04:32:21.348Z","repository":{"id":131276968,"uuid":"440926089","full_name":"edumats/loja-integrada-wrapper","owner":"edumats","description":"A wrapper written in Python for interacting with Loja Integrada's API","archived":false,"fork":false,"pushed_at":"2022-03-10T14:16:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T08:33:11.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edumats.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-22T16:52:26.000Z","updated_at":"2022-01-06T17:07:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"88ab9d43-4546-4d71-a7ba-a5a3ce4724fc","html_url":"https://github.com/edumats/loja-integrada-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edumats/loja-integrada-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumats%2Floja-integrada-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumats%2Floja-integrada-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumats%2Floja-integrada-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumats%2Floja-integrada-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edumats","download_url":"https://codeload.github.com/edumats/loja-integrada-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edumats%2Floja-integrada-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34272603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":[],"created_at":"2024-11-10T03:25:59.764Z","updated_at":"2026-06-13T04:32:21.330Z","avatar_url":"https://github.com/edumats.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loja Integrada's Wrapper\n\n## Introduction\n\nThis is a Python based wrapper for Loja Integradas's API. It is possible to use the API paths without dealing with implementation details as API's rate limits or the Python's requests module.\n\nThe rate limiting is managed by the [ratelimit](https://pypi.org/project/ratelimit/) module and the maximum number of requests is set at 100 calls/minute (the maximum allowed calls, according to the [Loja Integradas's official documentation](https://lojaintegrada.docs.apiary.io)). If one tries to make more calls than the maximum limit, the wrapper will sleep and retry after a minute is elapsed, ensuring that all calls to the API are successful.\n\nBased on Loja Integradas's API documentation:\n[Loja Integrada's API docs](https://lojaintegrada.docs.apiary.io)\n\n## How to use\n\nIt is necessary to obtain the APP KEY (chave da API) and the API KEY (chave da aplicação) from Loja Integrada. The APP KEY can be easily obtained from Loja Integrada's admin pannel, but the API KEY must be requested from the Loja Integrada's tech support. Note that it is necessary to have a Loja Integrada's PRO plan to be able to obtain both of these keys.\n\nSet the environment variables APP_KEY and API_KEY on your environment\n\nOn Linux or MacOS:\n\n```\nexport APP_KEY=\u003cAPP KEY\u003e\nexport API_KEY=\u003cAPI_KEY\u003e\n```\n\nExample of wrapper usage\n\n```\n# Imports the wrapper class\nfrom wrapper import LojaIntegrada as LI\n\n# Instantiates the wrapper object\nwrapper = LI()\n\n# Calls the API and creates a new customer\nwrapper.create_customer(key1=value1, key2=value2) `\n```\n\n## Available methods\n\n# create_customer()\n\nIf request is successful, returns a dict with the following content:\n\n```\n{\n  \"aceita_newsletter\": true,\n  \"cnpj\": null,\n  \"cpf\": \"37363337144\",\n  \"data_criacao\": \"2014-04-04 13:48:49.689375\",\n  \"data_modificacao\": \"2014-04-04 13:48:49.689413\",\n  \"data_nascimento\": \"1980-01-01\",\n  \"email\": \"joao@exemplo.com.br\",\n  \"enderecos\": [\n    {\n      \"bairro\": \"Freg. do Ó\",\n      \"cep\": \"02960030\",\n      \"cidade\": \"São Paulo\",\n      \"cliente\": \"/api/v1/cliente/103265/\",\n      \"complemento\": \"Apartamento 32\",\n      \"endereco\": \"Rua das Flores\",\n      \"estado\": \"SP\",\n      \"id\": 13144,\n      \"nome\": \"Jonatas Oliveira\",\n      \"numero\": \"123\",\n      \"pais\": \"Brasil\",\n      \"principal\": true,\n      \"referencia\": \"\",\n      \"resource_uri\": \"/api/v1/endereco/102512/\"\n    }\n  ],\n  \"grupo\": {\n    \"id\": 1,\n    \"nome\": \"Padrão\",\n    \"padrao\": true,\n    \"resource_uri\": \"/api/v1/grupo/1/\"\n  },\n  \"id\": 1,\n  \"ie\": null,\n  \"newsletter\": false,\n  \"nome\": \"João Exemplo\",\n  \"razao_social\": null,\n  \"resource_uri\": \"/api/v1/cliente/1/\",\n  \"rg\": \"123456-7\",\n  \"sexo\": \"m\",\n  \"telefone_celular\": \"11999998888\",\n  \"telefone_comercial\": \"1140620137\",\n  \"telefone_principal\": \"1133334444\",\n  \"tipo\": \"PF\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedumats%2Floja-integrada-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedumats%2Floja-integrada-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedumats%2Floja-integrada-wrapper/lists"}