{"id":15492302,"url":"https://github.com/stranger6667/pyoffers","last_synced_at":"2025-07-10T09:35:59.788Z","repository":{"id":62582223,"uuid":"66557611","full_name":"Stranger6667/pyoffers","owner":"Stranger6667","description":"Python client library for HasOffers API.","archived":false,"fork":false,"pushed_at":"2020-09-01T10:36:50.000Z","size":423,"stargazers_count":16,"open_issues_count":5,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T10:44:50.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pyoffers.readthedocs.io","language":"Python","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/Stranger6667.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"docs/contributing.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"Stranger6667"}},"created_at":"2016-08-25T12:53:41.000Z","updated_at":"2021-07-08T17:39:34.000Z","dependencies_parsed_at":"2022-11-03T22:01:51.012Z","dependency_job_id":null,"html_url":"https://github.com/Stranger6667/pyoffers","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyoffers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyoffers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyoffers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyoffers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stranger6667","download_url":"https://codeload.github.com/Stranger6667/pyoffers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250307739,"owners_count":21409128,"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","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-10-02T08:00:16.527Z","updated_at":"2025-04-22T19:26:33.599Z","avatar_url":"https://github.com/Stranger6667.png","language":"Python","funding_links":["https://github.com/sponsors/Stranger6667"],"categories":[],"sub_categories":[],"readme":"PyOffers\n========\n\n|Build| |Coverage| |Version| |Python versions| |License|\n\nPython client library for `HasOffers API \u003chttp://developers.hasoffers.com/\u003e`_.\n\nInstallation\n============\n\nPyOffers can be obtained with ``pip``::\n\n    $ pip install pyoffers\n\nUsage example\n=============\n\nInitialize API client:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from pyoffers.api import HasOffersAPI\n    \u003e\u003e\u003e hasoffers = HasOffersAPI(\n        endpoint='https://api.hasoffers.com/Apiv3/json',\n        network_token='\u003cyour_network_token\u003e',\n        network_id='\u003cyour_network_id\u003e',\n    )\n\nExecute queries:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e # Get all offers with ID greater than 100, sorted by ID and with loaded `Country` data\n    \u003e\u003e\u003e hasoffers.offers.find_all(id__gt=100, sort='id', contain=['Country'])\n    [\u003cOffer: 102\u003e,\n \u003cOffer: 104\u003e,\n \u003cOffer: 106\u003e,\n \u003cOffer: 108\u003e,\n \u003cOffer: 110\u003e,\n \u003cOffer: 112\u003e]\n    \u003e\u003e\u003e # Get all clicks records for 2016-09-20\n    \u003e\u003e\u003e hasoffers.raw_logs.clicks.find_all('20160920')\n    [\u003cLogRecord: 7 (1027a606128bd067105f0b0921840f)\u003e, ...]\n    \u003e\u003e\u003e # Get all conversions for specific offer\n    \u003e\u003e\u003e offer = hasoffers.offers.get_by_id(100)\n    \u003e\u003e\u003e offer.conversions.find_all()\n    [\u003cConversion: 70532\u003e]\n\n\nDocumentation\n=============\n\nYou can view documentation online at:\n\n- https://pyoffers.readthedocs.io\n\nOr you can look at the docs/ directory in the repository.\n\nPython support\n==============\n\nPyOffers supports Python 3.5+.\n\n.. |Build| image:: https://github.com/Stranger6667/pyoffers/workflows/build/badge.svg\n   :target: https://github.com/Stranger6667/pyoffers/actions\n.. |Coverage| image:: https://codecov.io/github/Stranger6667/pyoffers/coverage.svg?branch=master\n    :target: https://codecov.io/github/Stranger6667/pyoffers?branch=master\n.. |Version| image:: https://img.shields.io/pypi/v/pyoffers.svg\n   :target: https://pypi.org/project/pyoffers/\n.. |Python versions| image:: https://img.shields.io/pypi/pyversions/pyoffers.svg\n   :target: https://pypi.org/project/pyoffers/\n.. |License| image:: https://img.shields.io/pypi/l/pyoffers.svg\n   :target: https://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstranger6667%2Fpyoffers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstranger6667%2Fpyoffers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstranger6667%2Fpyoffers/lists"}