-def api_call(user, path, data=None):
- # what if not verified?
- 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)