-def api_call(user, path, data=None):
- conn = OAuthConnection.get(user)
+def api_call(user, path, data=None, beta=False):
+ from .models import OAuthConnection
+ api_url = BETA_API_URL if beta else WL_API_URL
+ conn = OAuthConnection.get(user=user, beta=beta)