Delicious      Technorati      Blinklist      Furl      Reddit

TimeTrex Time and Attendance

TimeTrex Time and Attendance


* FAQ    * Search
* Login   * Register

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Apr 29, 2016 5:09 pm 
Offline

Joined: Fri Apr 29, 2016 5:06 pm
Posts: 12
When I use the JSON API on the community edition I can log in fine but other queries I get this response.

Code:
array(2) {
  ["api_retval"]=>
  bool(false)
  ["api_details"]=>
  array(5) {
    ["code"]=>
    string(9) "EXCEPTION"
    ["description"]=>
    string(32) "Invalid referrer, possible CSRF."
    ["record_details"]=>
    array(3) {
      ["total"]=>
      int(0)
      ["valid"]=>
      int(0)
      ["invalid"]=>
      int(0)
    }
    ["user_generic_status_batch_id"]=>
    bool(false)
    ["details"]=>
    bool(false)
  }
}


Do you allow use of the API in the hosted version of the community edition?


Top
 Profile  
 
PostPosted: Sun May 01, 2016 12:10 pm 
Offline

Joined: Tue Sep 19, 2006 2:22 pm
Posts: 7234
Yes, API access it supported, however you will need either use the API client example from the downloadable version of TimeTrex, or make sure you send the REFERER header with each request that matches the JSON URL.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Time and Attendance




Powered by phpBB® Forum Software © phpBB Group