Metadata-Version: 2.1
Name: LibLynx
Version: 0.5
Summary: Python Library to interact with LibLynx
Home-page: https://gitlab.com/brillpublishers/code/liblynx
Author: Etienne Posthumus
Author-email: posthumus@brill.com
License: MIT
Description: # liblynx
        
        Python Library to interact with LibLynx https://www.liblynx.com/
        
        Usage example:
        
        ```
        import liblynx
        
        CLIENT_ID = "< your ID >"
        CLIENT_SECRET = "< your SECRET >"
        ll = liblynx.Connect(CLIENT_ID, CLIENT_SECRET)
        
        # or just,
        ll = liblynx.Connect()    # Then the ENV Variables LIBLYNX_CLIENT_ID and LIBLYNX_CLIENT_SECRET are used
        
        print(ll.access_token)
        print(ll.endpoint)
        # Note how the .access_token and .endpoint attribute access results in a cached lookup
        
        identification1 = ll.new_identification("127.0.0.127", "https://example.com/foo/", "Python-LibLynx-Testing/0.1")
        
        ll.api("new account", c.endpoint["_links"]["@new_account"]["href"], "POST", {"account_name":"Some Account", "subscriptions":[{"title":"Foo", "start": "2020-11-01 10:56:58", "end": "2020-12-01 10:56:58"}]})
        
        ```
        
        The environment variable _LIBLYNX_BASE_ is checked for specifying a BASE URL, for example:
        
        `export LIBLYNX_BASE=https://connect.liblynx.com`
        
        if not found it uses: https://sandbox.liblynx.com
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
