Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/bridge/DoorkeeperBridgeAsana.php
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | public function pullRefs(array $refs) { | ||||
| $token = $provider->getOAuthAccessToken($account); | $token = $provider->getOAuthAccessToken($account); | ||||
| if (!$token) { | if (!$token) { | ||||
| return; | return; | ||||
| } | } | ||||
| $template = id(new PhutilAsanaFuture()) | $template = id(new PhutilAsanaFuture()) | ||||
| ->setAccessToken($token); | ->setAccessToken($token); | ||||
| $timeout = $this->getTimeout(); | |||||
| if ($timeout !== null) { | |||||
| $template->setTimeout($timeout); | |||||
| } | |||||
| $futures = array(); | $futures = array(); | ||||
| foreach ($id_map as $key => $id) { | foreach ($id_map as $key => $id) { | ||||
| $futures[$key] = id(clone $template) | $futures[$key] = id(clone $template) | ||||
| ->setRawAsanaQuery("tasks/{$id}"); | ->setRawAsanaQuery("tasks/{$id}"); | ||||
| } | } | ||||
| $results = array(); | $results = array(); | ||||
| $failed = array(); | $failed = array(); | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||