Unable to Query Time Entries

21 views
Skip to first unread message

Art Ardolino

unread,
Oct 28, 2011, 3:39:32 PM10/28/11
to SlimTimer Developer Forum
I was able to figure out how to successfully authenticate via .NET
(BTW, the XML example in on the API page says api-key, and it only
works with an underscore, i.e. api_key) - I figured this out looking
at the other code examples. Also had to remove www from the url and
then it worked.

I am now submitting to retrieve my time entries, and I am now
submitting to the url http://slimtimer.com/users/***/time_entries,
replacing *** with the userid returned in the response of the
authentication message (a 5-digit number). The XML I am sending is:

<?xml version="1.0"?>
<request>
<api_key>################</api_key>
<access_token>###################</access_token>
</request>

api_key is my api key, and access_token is what I got back from the
authentication message. This is the response I get:

<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>undefined method `permission?' for nil:NilClass</error>
</errors>

Any idea why I am getting this error message?

Art Ardolino

unread,
Nov 9, 2011, 12:31:37 PM11/9/11
to SlimTimer Developer Forum
Does anyone monitor this group? I'm still waiting for a response.

jack...@gmail.com

unread,
Nov 9, 2011, 12:33:29 PM11/9/11
to slimti...@googlegroups.com
I monitor this group but there are only a few messages each year.

Jack Tunnicliffe

On Wed, Nov 9, 2011 at 11:31 AM, Art Ardolino <ajard...@gmail.com> wrote:
Does anyone monitor this group?  I'm still waiting for a response.

--
You received this message because you are subscribed to the Google Groups "SlimTimer Developer Forum" group.
To post to this group, send email to slimti...@googlegroups.com.
To unsubscribe from this group, send email to slimtimerapi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/slimtimerapi?hl=en.


Grant Lovell

unread,
May 13, 2012, 9:04:43 AM5/13/12
to slimti...@googlegroups.com
This may not matter to the OP any more but for anyone else encountering this issue. One solution is to not use XML for any of the GET requests. This includes:
  • /users/user_id/tasks/task_id
  • /users/user_id/tasks
  • /users/user_id/time_entries/time_entry_id
  • /users/user_id/tasks/task_id/time_entries
  • /users/user_id/time_entries
For these you can use paramaters in the GET request, for example:

And if you want to send optional parameters:
Reply all
Reply to author
Forward
0 new messages