معرفی شرکت ها


WixInstance-2.0.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

This package is used to parse the Wix Instance in the backend of a Wix application.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل WixInstance-2.0.3
نام WixInstance
نسخه کتابخانه 2.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Jeffrey Chan
ایمیل نویسنده UNKNOWN
آدرس صفحه اصلی https://github.com/jeffreychan637/wix-instance
آدرس اینترنتی https://pypi.org/project/WixInstance/
مجوز MIT
============ Wix Instance ============ .. image:: https://travis-ci.org/jeffreychan637/wix-instance.svg?branch=master :target: https://travis-ci.org/jeffreychan637/wix-instance This is a Python package that parses the `Wix Instance`_ for `Wix`_ applications that use a Python backend. This package supports **Python 2.7, 3.2, 3.3, 3.4**. In your Wix app, send the unparsed instance along with each request from the client side to your server. On the server, use this package to verify that the instance actually came from Wix to guarentee that the request is valid. .. _Wix Instance: http://dev.wix.com/docs/display/DRAF/Using+the+Signed+App+Instance .. _Wix: http://www.wix.com/ Installation ============ This package is available on `Pypi`_. Install via `pip`_. .. _Pypi: https://pypi.python.org/pypi .. _pip: http://pip.readthedocs.org/en/latest/index.html :: pip install wixinstance Usage ===== :: import wixinstance #Get the instance ID. instance_ID = wixinstance.get_instance_ID(YOUR_APP_SECRET, INSTANCE, check_owner) if instance_ID: #process the request because it is valid else: #reject the request because it is invalid #Get the entire parsed instance object parsed_instance = wixinstance.instance_parser(YOUR_APP_SECRET, INSTANCE) if parsed_instance: #process the request because it is valid else: #reject the request because it is invalid Documentation ============= **get_instance_ID** Use this function when you need the instance ID of the parsed instance. The instance ID is returned as a Unicode string. The function takes in a third argument called check_owner which is a boolean that tells the function whether or not to check if the instance was generated by the owner of the site or a site visitor. Use this to verify requests that only the owner of a site can make (e.g. changing app settings). The function returns false if the instance is invalid or if the instance was not generated by the site owner (assuming site_owner is set to True). **instance_parser** Use this function when you want the entire parsed instance. The parsed instance is returned as a dictionary. The keys to the dictionary are equivalent to the Instance properties in the `Wix Documentation`_. .. _Wix Documentation: http://dev.wix.com/docs/display/DRAF/Using+the+Signed+App+Instance Support ======= File issues with this package `here`_. Feel free to contribute to this package by making a `pull request`_ on Github. .. _here: https://github.com/jeffreychan637/wix-instance/issues .. _pull request: https://github.com/jeffreychan637/wix-instance/pulls


نحوه نصب


نصب پکیج whl WixInstance-2.0.3:

    pip install WixInstance-2.0.3.whl


نصب پکیج tar.gz WixInstance-2.0.3:

    pip install WixInstance-2.0.3.tar.gz