wethenew-client


Namewethenew-client JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/niewiemczego/wethenew-client
Summarywethenew-client is a robust and user-friendly client library designed to simplify interactions with the wethenew API. It provides developers with an intuitive interface to access and manipulate data, streamlining the integration of wethenew services into various applications.
upload_time2023-11-13 23:34:41
maintainer
docs_urlNone
authorniewiemczego
requires_python
licenseMIT
keywords wethenew snekaers rest api restocks stockx goat klekt
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # wethenew-client

## Overview

The wethenew-client is an unofficial Python wrapper for the API of the Wethenew sneaker platform. It facilitates interactions with the platform, allowing users to manage their sneaker listings and offers. This project is independent and is not officially associated with Wethenew.

## Installation

You can install the package using pip:

```python
pip install wethenew-client
```

## Functions

Below is a table of the functions available in the WethenewClient object, detailing whether user login is required.

| Function Name          | Description                                      | Login Required |
| ---------------------- | ------------------------------------------------ | -------------- |
| `get_current_listings` | Retrieves the current sneaker listings.          | Yes            |
| `get_current_offers`   | Fetches the current sneaker offers.              | Yes            |
| `extend_listings`      | Extends the expiration date of sneaker listings. | Yes            |
| `accept_offer`         | Accepts a specific offer.                        | Yes            |
| `reject_offer`         | Rejects a specific offer.                        | Yes            |

### Filters

When listing a product or retrieving current listings, you can specify filters to narrow down the results or to set the conditions of your listing. Below are the filter types and their possible values:

#### ListingDuration

This filter is used to specify the duration for which a product will be listed on the platform. The possible values are:

- `Days15`: List the product for 15 days.
- `Days30`: List the product for 30 days.
- `Days60`: List the product for 60 days.

## Usage Example

```python
from wethenew import WethenewClient, ListingDuration

# Initialize the WethenewClient with your credentials.
client = WethenewClient(
    email='your_email@example.com',
    password='your_password',
    proxies_file_name='path_to_proxies_file.txt'
)

# Retrieve current listings and print them.
listings = client.get_current_listings()
print(listings)

# Accept an offer.
client.accept_offer(offer_id='some_offer_id', variant_id=123)

# Extend a listing.
client.extend_listings(days=ListingDuration.DAYS60, apply_to_same_variants=True)
```

## Note

The use of proxies is recommended to avoid potential rate limits or blocks by the Wethenew API. You can specify proxies in a file, as shown in the example.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/niewiemczego/wethenew-client",
    "name": "wethenew-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wethenew snekaers rest api restocks stockx goat klekt",
    "author": "niewiemczego",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/59/a9/c73f4f4dbb25ecd17701ed85596b27a8847562f2be4964406c72ea116e9d/wethenew-client-1.0.1.tar.gz",
    "platform": null,
    "description": "# wethenew-client\n\n## Overview\n\nThe wethenew-client is an unofficial Python wrapper for the API of the Wethenew sneaker platform. It facilitates interactions with the platform, allowing users to manage their sneaker listings and offers. This project is independent and is not officially associated with Wethenew.\n\n## Installation\n\nYou can install the package using pip:\n\n```python\npip install wethenew-client\n```\n\n## Functions\n\nBelow is a table of the functions available in the WethenewClient object, detailing whether user login is required.\n\n| Function Name          | Description                                      | Login Required |\n| ---------------------- | ------------------------------------------------ | -------------- |\n| `get_current_listings` | Retrieves the current sneaker listings.          | Yes            |\n| `get_current_offers`   | Fetches the current sneaker offers.              | Yes            |\n| `extend_listings`      | Extends the expiration date of sneaker listings. | Yes            |\n| `accept_offer`         | Accepts a specific offer.                        | Yes            |\n| `reject_offer`         | Rejects a specific offer.                        | Yes            |\n\n### Filters\n\nWhen listing a product or retrieving current listings, you can specify filters to narrow down the results or to set the conditions of your listing. Below are the filter types and their possible values:\n\n#### ListingDuration\n\nThis filter is used to specify the duration for which a product will be listed on the platform. The possible values are:\n\n- `Days15`: List the product for 15 days.\n- `Days30`: List the product for 30 days.\n- `Days60`: List the product for 60 days.\n\n## Usage Example\n\n```python\nfrom wethenew import WethenewClient, ListingDuration\n\n# Initialize the WethenewClient with your credentials.\nclient = WethenewClient(\n    email='your_email@example.com',\n    password='your_password',\n    proxies_file_name='path_to_proxies_file.txt'\n)\n\n# Retrieve current listings and print them.\nlistings = client.get_current_listings()\nprint(listings)\n\n# Accept an offer.\nclient.accept_offer(offer_id='some_offer_id', variant_id=123)\n\n# Extend a listing.\nclient.extend_listings(days=ListingDuration.DAYS60, apply_to_same_variants=True)\n```\n\n## Note\n\nThe use of proxies is recommended to avoid potential rate limits or blocks by the Wethenew API. You can specify proxies in a file, as shown in the example.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "wethenew-client is a robust and user-friendly client library designed to simplify interactions with the wethenew API. It provides developers with an intuitive interface to access and manipulate data, streamlining the integration of wethenew services into various applications.",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/niewiemczego/wethenew-client"
    },
    "split_keywords": [
        "wethenew",
        "snekaers",
        "rest",
        "api",
        "restocks",
        "stockx",
        "goat",
        "klekt"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "83ff6ebcd97f5d1b2930514379c0e35e72a88ec601b9123d0978be46bfdbd59b",
                "md5": "d48b1282d90703ccc5b1a48396a26011",
                "sha256": "78deddbf7d064498d59306eca8238e32907d5da324d5e0ebc37a971b6521fb94"
            },
            "downloads": -1,
            "filename": "wethenew_client-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d48b1282d90703ccc5b1a48396a26011",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8503,
            "upload_time": "2023-11-13T23:34:40",
            "upload_time_iso_8601": "2023-11-13T23:34:40.414462Z",
            "url": "https://files.pythonhosted.org/packages/83/ff/6ebcd97f5d1b2930514379c0e35e72a88ec601b9123d0978be46bfdbd59b/wethenew_client-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "59a9c73f4f4dbb25ecd17701ed85596b27a8847562f2be4964406c72ea116e9d",
                "md5": "01404b3106cb74eac982ccf7c7448d6a",
                "sha256": "8b075ed9a9f31e8a6e81d3e4eabc03858418ffe2a3deb5dfbc5b40901c363a1a"
            },
            "downloads": -1,
            "filename": "wethenew-client-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "01404b3106cb74eac982ccf7c7448d6a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7903,
            "upload_time": "2023-11-13T23:34:41",
            "upload_time_iso_8601": "2023-11-13T23:34:41.953032Z",
            "url": "https://files.pythonhosted.org/packages/59/a9/c73f4f4dbb25ecd17701ed85596b27a8847562f2be4964406c72ea116e9d/wethenew-client-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-13 23:34:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "niewiemczego",
    "github_project": "wethenew-client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "wethenew-client"
}
        
Elapsed time: 0.13735s