Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/future/PhabricatorTwilioFuture.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | if (!$this->future) { | ||||
} | } | ||||
$path = urisprintf( | $path = urisprintf( | ||||
'/%s/Accounts/%s/%s', | '/%s/Accounts/%s/%s', | ||||
'2010-04-01', | '2010-04-01', | ||||
$this->accountSID, | $this->accountSID, | ||||
$this->method); | $this->method); | ||||
$uri = id(new PhutilURI('https://api.twilio.com/2010-04-01/accounts/')) | $uri = id(new PhutilURI('https://api.twilio.com/')) | ||||
epriestley: This was a leftover from implementing the thing, `setPath()` wiped it out. I caught it while… | |||||
->setPath($path); | ->setPath($path); | ||||
$data = $this->parameters; | $data = $this->parameters; | ||||
$future = id(new HTTPSFuture($uri, $data)) | $future = id(new HTTPSFuture($uri, $data)) | ||||
->setHTTPBasicAuthCredentials($this->accountSID, $this->authToken) | ->setHTTPBasicAuthCredentials($this->accountSID, $this->authToken) | ||||
->setMethod('POST') | ->setMethod('POST') | ||||
->addHeader('Accept', 'application/json'); | ->addHeader('Accept', 'application/json'); | ||||
Show All 31 Lines |
This was a leftover from implementing the thing, setPath() wiped it out. I caught it while COPY/PASTING CODE HA HA HA