Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions drift/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import requests
from .contacts import Contact
from .conversations import Conversation
from .playbook import Playbook
from .users import User
from . import __version__

Expand All @@ -24,6 +25,7 @@ def __init__(self, access_token):
}
self.contacts = Contact(self)
self.conversations = Conversation(self)
self.playbooks = Playbook(self)
self.users = User(self)

def post(self, url, data, **kwargs):
Expand Down
16 changes: 16 additions & 0 deletions drift/playbooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from .errors import InvalidFormatError


class Playbook(object):
"""
Contains API route for quering playbooks.
https://devdocs.drift.com/docs/retrieve-conversational-landing-pages
"""

CLP_URL = 'https://driftapi.com/playbooks/clp'

def __init__(self, client):
self.client = client

def get(self):
return self.client.get(self.CLP_URL)