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

Common Support and Issues · Changes

Page history
Added wiki for hubstaff authored Jun 27, 2021 by matte0's avatar matte0
Show whitespace changes
Inline Side-by-side
Showing with 30 additions and 0 deletions
+30 -0
  • Hubstaff/Common-Support-and-Issues.md Hubstaff/Common-Support-and-Issues.md +30 -0
  • No files found.
Hubstaff/Common-Support-and-Issues.md 0 → 100644
View page @ 0ae110c3
# 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/
3. In the **hubstaff.php** controller. Change the `$_CLIENT_ID` and `$_CLIENT_SECRET` according to the provided credentials by the hubstaff API
``` php
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
*/
```
4. 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`.
5. 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