django-Socialtext is een Django app die helpt integreren Socialtext met uw project.
Deze toepassing zal u helpen omgaan met de Socialtext REST API en webhooks ontvangt van uw Socialtext apparaat.
Installatie:
& Nbsp; 1. Installeer django-Socialtext op uw PYTHONPATH:
& Nbsp; pip installeren django-Socialtext
& Nbsp; # of
& Nbsp; easy_install django-Socialtext
& Nbsp; 2. Zet 'djsocialtext' om INSTALLED_APPS van uw project
& Nbsp; 3. Configureer de djsocialtext instellingen:
& Nbsp; ST_URL = "https://st.example.com" # URL voor uw ST apparaat
& Nbsp; ST_USER = "joeuser" # je ST gebruikersnaam
& Nbsp; ST_PASSWORD = "joepassword" # je ST wachtwoord
Gebruik:
Djsocialtext helpt je interactie met de rest API door het verstrekken van een snelkoppeling methode om een python-Socialtext API-client instantiëren met behulp van de instellingen van uw project:
van djsocialtext import get_api
api = get_api ()
api.workspaces.list ()
[
Bijdraagt
Ontwikkeling vindt plaats op GitHub. . Je kunt indienen pull aanvragen en de afgifte van kaartjes er
Eisen
- Python
- Django
Reacties niet gevonden