Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
A AIS modular
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Matthew Chavez
  • AIS modular
  • Wiki
    • Hubstaff
  • Common Support and Issues

Last edited by matte0 Jun 27, 2021
Page history

Common Support and Issues

Scenario Expired Access Token:

  1. Make sure to have a valid developer admin account access in hubstaff to have access to all organization members. (User account type only allow's own data to be received).
  2. Create an access token by going to the hubstaff linked apps using this link: https://account.hubstaff.com/account/linked_apps.

Note: In case their process have changed, use this link on how to refresh the token. https://developer.hubstaff.com/

  1. In the hubstaff.php controller. Change the $_CLIENT_ID and $_CLIENT_SECRET according to the provided credentials by the hubstaff API


class Hubstaff extends CI_Controller {
    // ! ============== DO NOT DELETE THIS STATIC VARIABLES (only replace them if app "Hubstaff API" fails). ==============
    static private $_CLIENT_ID = "";
    static private $_CLIENT_SECRET = "";
    static private $_CODE = "";
    /**
     * ... more code here
     * ... that should not be replaced as it already uses AMTI credentials
     */ 
  1. Once the $_CLIENT_ID and $_CLIENT_SECRET has been provided run the following function. refreshAccessToken()

You can access this via the https://<AMTI domain>/hubstaff/refreshAccessToken.

  1. This will echo the new access tokens if successful. else error will be displayed.

You don't have to do anything if the access token is successfull as it is already cached by the system.

Clone repository
  • Hubstaff
    • Common Support and Issues
    • Overview
  • Warehouse Delivery Tracking (WDT API Only)
    • Common Support and Issues
    • Overview
    • Technical Debt
  • clearance
    • Common Support and Issues
    • Overview
    • Technical Debt
  • Home