gigya-server-lib

Gigya Server Library (gslib) is a python adaptation of the Gigya Server SDK
Download

gigya-server-lib Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Miguel Pilar

gigya-server-lib Tags


gigya-server-lib Description

gigya-server-lib is a Python adaptation of the Gigya Server SDK to Python.Typical UsageProperly initialized, gslib is very simple to use:# Make a request to gigya (retrieve a user's data from GCS)gslib.Request('gcs.getUserData', params={"UID": '', "fields": "*"}, use_https=True).send()# Verify an event's signature (gigya_dict contains a json response# loaded to a dict with json.loads)# See: http://bit.ly/NZ2Bpcgslib.SigUtils.signature_validate(gigya_dict, gigya_dict, gigya_dict)InstallationTo install Gigya Server Lib, simply: pip install gigya-server-libOr, if you're running on an old and busted environment: easy_install gigya-server-libInitializationIf used inside a django application gslib will automatically look for the following settings:settings.GIGYA_API_KEYsettings.GIGYA_SECRET_KEYIf used inside a flask application, initialization can be done by calling gslib.initialize_app, gslib will expect similar keys on the flask app's config (GIGYA_API_KEY and GIGYA_SECRET_KEY).Otherwise the api key and secret key can be sent as arguments to the constructor of a gslib.Request.Product's homepage


gigya-server-lib Related Software