Get a specific Access Point
@param int $accessPointId
@return \alphayax\freebox\api\v3\models\WiFi\AccessPoint\AP
423575
public function getFromId( $accessPointId){
        $rest = $this->getService( self::API_WIFI_AP . $accessPointId);
        $rest->GET();

        return $rest->getResult( models\WiFi\AccessPoint\AP::class);
    }
216828
public function get($pageId, array $params = array())
    {
        $endpoint = '/admin/pages/'.$pageId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(Page::class, $response['page']);
    }
140517
public function getBroadcast($broadcastId)
    {
        Validators::validateBroadcastId($broadcastId);

        $broadcastData = $this->client->getBroadcast($broadcastId);
        return new Broadcast($broadcastData, array( 'client' => $this->client ));
    }
311515
public function get($eventId, array $params = array())
    {
        $endpoint = '/admin/events/'.$eventId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(Event::class, $response['event']);
    }
90792
public function get($locationId, array $params = array())
    {
        $endpoint = '/admin/locations/'.$locationId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(Location::class, $response['location']);
    }
839132
public function getPidByPpid($ppid)
    {
        $commandsDto = new CommandsExecutionDto();
        $commandsDto->setCommandName(CommandsConstants::GET_PID_BY_PPID);
        $commandsDto->setPid($ppid);

        return $this->getCommandExecutionResult($commandsDto);
    }
1352702
public function getVenue($venueId)
    {
        $resource = '/venues/' . $venueId;
        $response = $this->makeApiRequest($resource);

        return $response->venue;
    }
497746
public function getEndpoint($endpoint, $withHost = false, $forceReload = false)
    {
        $this->loadApiDefinition($forceReload);
        $url = "";
        if ($withHost) {
            $url = empty($this->options['host']) ? $this->definition->getHost() : $this->options['host'];
        }

        // If the base path is not already included, we need to add it.
        $url .= (empty($this->options['includeBasePath']) ? $this->definition->getBasePath() : '') . $endpoint;

        return $url;
    }
199427
public function getPublicAccessUrl()
    {
        if (is_null($this->accessProvider)) {
            common_Logger::e('accessss');
            throw new common_Exception('Tried obtaining access to private directory with ID ' . $this->getId());
        }
        return $this->accessProvider->getAccessUrl($this->prefix . DIRECTORY_SEPARATOR);
    }
1159185
public function getApiApp($id)
    {
        $params = array();
        $response = $this->rest->get(
            static::APIAPP_PATH . '/' . $id,
            $params
        );
        $this->checkResponse($response);
        return new ApiApp($response);
    }
761666
public static function getDeviceById($id)
    {
        $device = static::lookupDevice('id', $id);
        if (!empty($device) && isset($device['class_name'])) {
            /** @var DeviceInterface $class */
            $class = $device['class_name'];
            $client = static::getClientByDevice($device);
            return new $class($id, $client);
        }

        // Search device in wemo link
        $bridge = new Bridge('wemo_link', new WemoClient($device['ip'], $device['port']));
        $devices = $bridge->getPairedDevices();

        foreach ($devices as $d) {
            if ($id === $d['id']) {
                if ($d['productName'] === 'Lighting') {
                    return new WemoBulb('wemo_link', $id);
                }
            }
        }

        throw new \Exception('Invalid device id supplied. No base device found by id ' . $id);
    }
1353137
public function get(string $beginOpenId = null)
    {
        return $this->curl->post(self::GET.$this->access_token, json_encode([
                'begin_openid' => $beginOpenId,
            ]
        ));
    }
948766
public function getStopPoints($coverageId, $networkId, $lineId, $routeId)
    {
        $pathFilter = 'networks/'.$networkId.'/lines/'.$lineId.'/routes/'.$routeId;

        $query = array(
            'api' => 'coverage',
            'parameters' => array(
                'region' => $coverageId,
                'action' => 'route_schedules',
                'path_filter' => $pathFilter,
                'parameters' => '?depth=0',
            ),
        );

        return $this->navitia_component->call($query);
    }
734883
public function getDevice($deviceId)
    {
        if (!isset($this->_deviceCache[$deviceId])) {
            $device = $this->persistenceStorage->load($deviceId);
            if (!$device) {
                throw new Exception("There is no device with ID [$deviceId] in the loaded WURFL Data");
            }
            $this->_deviceCache[$deviceId] = $device;
        }
        return $this->_deviceCache[$deviceId];
    }
718979
public function getWebserviceId(string $serverId)
    {
        if (!$this->hasServerConfiguration($serverId)) {
            return null;
        }

        return $this->configuration['connections'][$serverId]['id'];
    }
136555
public function getChannel($channelId)
    {
        $uri = "channels/$channelId";
        try {
            $response = $this->client->getEndpoint()->get($uri);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }

        return new Channel($this->client, \GuzzleHttp\json_decode($response->getBody()));
    }
281364
public function index($locationId)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $location = Location::findOrFail($locationId);
        $this->authorize('view', $location);
        return $this->respondRelatedAddresses($locationId, 'location');
    }