# give/4.16.9/src/Tracking/Repositories/TelemetryAccessDetails.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 51 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Tracking/Repositories/TelemetryAccessDetails.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Tracking/Repositories/TelemetryAccessDetails.php
- Modified: 2021-11-23T23:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Tracking/Repositories/TelemetryAccessDetails.php#L10-L20`.

```php
<?php

namespace Give\Tracking\Repositories;

/**
 * Class TelemetryAccessDetails
 * @package Give\Tracking\Repositories
 *
 * @since 2.10.0
 */
class TelemetryAccessDetails
{
    const ACCESS_TOKEN_OPTION_KEY = 'give_telemetry_server_access_token';

    /**
     * Get option value for telemetry access token.
     *
     * @since 2.10.0
     * @return string
     */
    public function getAccessTokenOptionValue()
    {
        return get_option(self::ACCESS_TOKEN_OPTION_KEY, '');
    }

    /**
     * Return whether or not website has telemetry access token.
     *
     * @since 2.10.0
     * @return string
     */
    public function hasAccessTokenOptionValue()
    {
        return (bool)$this->getAccessTokenOptionValue();
    }

    /**
     * Get option value for telemetry access token.
     *
     * @since 2.10.0
     *
     * @param string $optionValue
     *
     * @return string
     */
    public function saveAccessTokenOptionValue($optionValue)
    {
        return update_option(self::ACCESS_TOKEN_OPTION_KEY, $optionValue, false);
    }
}

```
