Skip to content

Commit ac8717f

Browse files
committed
Changed ENABLE_CONVERSATIONAPI_WHATSAPP_SANDBOX to ENABLE_CONVERSATION_API_WHATSAPP_SANDBOX
1 parent 663bc64 commit ac8717f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ Please see the other examples for a complete overview of all the available API c
7575

7676
Conversations WhatsApp Sandbox
7777
-------------
78-
To use the whatsapp sandbox you need to add `messagebird.Feature.ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX` to the list of features you want enabled. Don't forget to replace `YOUR_ACCESS_KEY` with your actual access key.
78+
To use the whatsapp sandbox you need to add `messagebird.Feature.ENABLE_CONVERSATIONS_API_WHATSAPP_SANDBOX` to the list of features you want enabled. Don't forget to replace `YOUR_ACCESS_KEY` with your actual access key.
7979

8080
```python
81-
client = messagebird.Client('1ekjMs368KTRlP0z6zfG9P70z', features=[messagebird.Feature.ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX])
81+
client = messagebird.Client('1ekjMs368KTRlP0z6zfG9P70z', features=[messagebird.Feature.ENABLE_CONVERSATIONS_API_WHATSAPP_SANDBOX])
8282
```
8383

8484
Documentation

messagebird/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ def __init__(self, errors):
4949
super(ErrorException, self).__init__(message)
5050

5151
class Feature(enum.Enum):
52-
ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX = 1
52+
ENABLE_CONVERSATIONS_API_WHATSAPP_SANDBOX = 1
5353

5454
class Client(object):
5555

5656
def __init__(self, access_key, http_client=None, features=[]):
5757
self.access_key = access_key
5858
self.http_client = http_client
5959

60-
self.conversation_api_root = CONVERSATION_API_WHATSAPP_SANDBOX_ROOT if Feature.ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX in features else CONVERSATION_API_ROOT
60+
self.conversation_api_root = CONVERSATION_API_WHATSAPP_SANDBOX_ROOT if Feature.ENABLE_CONVERSATIONS_API_WHATSAPP_SANDBOX in features else CONVERSATION_API_ROOT
6161

6262
def _get_http_client(self, type=REST_TYPE):
6363
if self.http_client:

0 commit comments

Comments
 (0)