Returns the guild API
@return \WowApi\Api\Guild
541851
public function getGuildApi()
    {
        if (!$this->apis->has('guild')) {
            $this->apis->set('guild', new Guild($this));
        }

        return $this->apis->get('guild');
    }
523284
private function _getApiClient()
    {
        if (empty($this->client)) {
            $website = $this->getCustomer()->getStore()->getWebsite();
            $client = $this->helper->getWebsiteApiClient($website);
            $this->client = $client;
        }

        return $this->client;
    }
210743
public function getETag() {
        if (!isset($this->metadata[OSSHeaders::ETAG])) {
            return null;
        }
        return $this->metadata[OSSHeaders::ETAG];
    }
240234
public function getCredentialsFetcher()
    {
        $fetcher = null;

        if ($this->credentialsFetcher) {
            $fetcher = $this->credentialsFetcher;
        } elseif ($this->keyFile) {
            $fetcher = CredentialsLoader::makeCredentials($this->scopes, $this->keyFile);
        } else {
            try {
                $fetcher = $this->getADC();
            } catch (\DomainException $ex) {
                $fetcher = new AnonymousCredentials();
            }
        }

        return new FetchAuthTokenCache(
            $fetcher,
            $this->authCacheOptions,
            $this->authCache
        );
    }
215243
public function getAuthUserGroup()
    {
        $user_groups = Auth::user()->find(Auth::user()->id)->group;

        // create an array
        $usergroupArray = [];
        foreach ($user_groups as $user_group) {
            $usergroupArray[] = $user_group->title;
        }

        return $usergroupArray;
    }
1022654
public function getBinary()
    {
        $sid = explode('-', ltrim($this->value, 'S-'));

        $level = (int) array_shift($sid);

        $authority = (int) array_shift($sid);

        $subAuthorities = array_map('intval', $sid);

        $params = array_merge(
            ['C2xxNV*', $level, count($subAuthorities), $authority],
            $subAuthorities
        );

        return call_user_func_array('pack', $params);
    }
296352
public function getAuthenticationClient()
    {
        if (null === $this->authenticationClient) {
            $this->authenticationClient = new Auth\OAuth2(
                $this->getHttpClient(),
                $this->getOption('client_id'),
                $this->getOption('client_secret')
            );
        }

        return $this->authenticationClient;
    }
609639
public function getGroup(){
        if (!$this->access_token && !$this->checkAuth()) return false;
        $result = $this->http_get(self::API_URL_PREFIX.self::GROUP_GET_URL.'access_token='.$this->access_token);
        if ($result)
        {
            $json = json_decode($result,true);
            if (isset($json['errcode'])) {
                $this->errCode = $json['errcode'];
                $this->errMsg = $json['errmsg'];
                return false;
            }
            return $json;
        }
        return false;
    }
1202338
public function getAPI()
    {
        if (empty($this->api)) {
            if (!empty($this->config(static::TOOL_CANVAS_API)['token'])) {
                $this->setAPI(new CanvasPest(
                    'https://' . $_SESSION[ToolProvider::class]['canvas']['api_domain'] . '/api/v1',
                    $this->config(static::TOOL_CANVAS_API)['token']
                ));
            } else {
                throw new ConfigurationException(
                    'Canvas URL and Token required',
                    ConfigurationException::CANVAS_API_INCORRECT
                );
            }
        }
        return $this->api;
    }
879476
public function getChannelAttribute()
    {
        foreach ($this->discord->guilds as $guild) {
            if ($guild->channels->has($this->channel_id)) {
                return $guild->channels->get('id', $this->channel_id);
            }
        }

        if ($this->cache->has("pm_channels.{$this->channel_id}")) {
            return $this->cache->get("pm_channels.{$this->channel_id}");
        }

        return $this->factory->create(Channel::class, [
            'id'   => $this->channel_id,
            'type' => Channel::TYPE_DM,
        ], true);
    }
44037
public function getOrder()
    {
        $productFactory = new ProductFactory();
        $itemFactory = new ItemFactory($productFactory, 'EUR');

        return new ApiOrder($this->entity->getOrder(), $this->locale, $itemFactory);
    }
1075606
public function getApiClient()
    {
        if (!$this->_apiClient) {
            $this->_apiClient = new OAuth2([
                'clientId' => $this->clientID,
                'clientSecret' => $this->clientSecret,
                'cacheComponent' => $this->cacheComponent,
            ]);
        }
        return $this->_apiClient;
    }
857543
protected function getApi()
    {
        if (isset($this->_api)) {
            return $this->_api;
        } else {
            return $this->_api = Yii::app()->getComponent('bootstrap');
        }
    }
1321280
public function getApi()
    {
        $imageManager = new ImageManager([
            'driver' => extension_loaded('imagick') ? 'imagick' : 'gd'
        ]);
        $manipulators = [
            new Size($this->maxImageSize),
            new Orientation(),
            new Crop(),
            new Brightness(),
            new Contrast(),
            new Gamma(),
            new Sharpen(),
            new Filter(),
            new Flip(),
            new Blur(),
            new Pixelate(),
            new Background(),
            new Border(),
            new Watermark($this->getWatermarks(), $this->watermarksPathPrefix),
            new Encode(),
        ];

        return new Api($imageManager, $manipulators);
    }
1234041
protected function client()
    {
        $apiKey = $this->config('apiKey');
        if (!$apiKey) {
            return null;
        }

        $endpoint = $this->config('endpoint');
        $defaults = $this->config('defaults');
        if ($defaults === null) {
            $defaults = true;
        }
        $client = Client::make($apiKey, $endpoint, $defaults);

        return $client;
    }
1270284
public function getAvatar(){
		$result = null;
		if (isset($this->userInfo[$this->socialFieldsMap['avatar']])) {
			$result = $this->userInfo[$this->socialFieldsMap['avatar']];
			}
		return $result;
		}
641569
public function indexAction()
    {
        $this->checkAccess();

        $allowWorkspace = $this->configHandler->getParameter('allow_workspace_at_registration');

        $data = [
            'facets' => $this->profileSerializer->serialize([Options::REGISTRATION]),
            'termOfService' => $this->configHandler->getParameter('terms_of_service') ?
                $this->tosManager->getTermsOfService() : null,
            'options' => [
                'autoLog' => $this->configHandler->getParameter('auto_logging'),
                'localeLanguage' => $this->configHandler->getParameter('locale_language'),
                'defaultRole' => $this->configHandler->getParameter('default_role'),
                'redirectAfterLoginOption' => $this->configHandler->getParameter('redirect_after_login_option'),
                'redirectAfterLoginUrl' => $this->configHandler->getParameter('redirect_after_login_url'),
                'userNameRegex' => $this->configHandler->getParameter('username_regex'),
                'forceOrganizationCreation' => $this->configHandler->getParameter('force_organization_creation'),
                'allowWorkspace' => $allowWorkspace,
            ],
        ];

        return $data;
    }