Skip to main content

Enhance your site with high conversion magic with Miso's power.

Project description

MISO SDK for Python

Enhance your site with high conversion magic with Miso's power.

Home | Docs | API Reference | Recipes

Quick Start

To use the SDK client:

import json
from miso.sdk import ApiClient

api_key = 'YOUR-API-KEY-HERE'

api_client = ApiClient(api_key)
resp = api_client.search.search(q = "love", user_id = "MY-ID")
print(json.dumps(resp, indent=2))

will print something similar to:

{
  "message": "success",
  "data": {
    "took": 15,
    "miso_id": "fd3aae82-8068-11ed-89d8-967a8675a919",
    "products": [
      {
        "product_id": "588527603"
      },
      {
        "product_id": "193225388"
      },
      {
        "product_id": "771495105"
      },
      {
        "product_id": "572340793",
      },
      {
        "product_id": "563687627"
      }
    ],
    "total": 65577,
    "start": 0,
    "spellcheck": {
      "spelling_errors": false,
      "auto_spelling_correction": false,
      "original_query": "love",
      "original_query_with_markups": "love",
      "corrected_query": "love",
      "corrected_query_with_markups": "love"
    },
    "product_existence": {},
    "partially_matched_products": null,
    "facet_counts": {
      "facet_fields": {}
    },
    "custom_assets": []
  }
}

For detailed usage, please refer to Miso API Document.

License

This library is distributed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

miso-sdk-1.3.0.tar.gz (11.1 kB view details)

Uploaded Source

File details

Details for the file miso-sdk-1.3.0.tar.gz.

File metadata

  • Download URL: miso-sdk-1.3.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for miso-sdk-1.3.0.tar.gz
Algorithm Hash digest
SHA256 a3a8d04ba94aca887a4b50a76d9c25cbd13faa6a7a5558474b996476e5c2f884
MD5 e1d3ae617f3807c888faa3fc909ddbb4
BLAKE2b-256 20cb95a426a037213bba138a4ee1aa12486b28a6e651553c22a4e6696f5aa5ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page