CoreApiAccessInterface.php 778 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\ViewModel\DataProvider;
  6. /**
  7. * M2 Core API Access Provider Interface
  8. *
  9. * @package Temando\Shipping\ViewModel
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link http://www.temando.com/
  13. */
  14. interface CoreApiAccessInterface
  15. {
  16. /**
  17. * Obtain authentication token for Magento REST API access.
  18. *
  19. * @return string
  20. */
  21. public function getAccessToken(): string;
  22. /**
  23. * Obtain admin session expiration timestamp.
  24. *
  25. * @return int
  26. */
  27. public function getSessionExpirationTime(): int;
  28. }