opentok/Opentok-Python-SDK — Issue #2: Staging / Production Param
Author: rdegges
Created: 2011-11-04 01:14:18+00:00
State: open

Hey Guys,

What do you think about having an optional boolean param for the ``OpenTokSDK`` class, ``staging``, which could be set to ``True`` to adjust the ``OpenTokSDK.API_URL`` value?

Right now, the library requires some tweaking to make it work in production--I think it should be the other way around.

Here's how it could look (I'd be happy to implement this, btw)::

```python
from OpenTokSDK import OpenTokSDK

o = OpenTokSDK(api_key='xxx', api_secret='xxx', staging=True) # staging would default to False for simplicity
session = o.create_session('ip')
```
What do ya think?