federatedbookkeeping / timesheets

Federated Timesheets Project. Gitter: https://gitter.im/federatedbookkeeping/timesheets
MIT License
9 stars 1 forks source link

Using timesheet-dev3-evoludata-com #45

Closed michielbdejong closed 2 years ago

michielbdejong commented 2 years ago

I'm trying out timesheet-dev3-evoludata-com and ran into some questions. Shall I list them here or is there an issue tracker elsewhere you prefer to use?

First issue: how to manually add an entry

-> see #46

kroky commented 2 years ago

Yes, please list them here. Answered the first one in #46

michielbdejong commented 2 years ago

I can now log in as michielbdejong and see Victor's hours in the GUI in http://timesheet.dev3.evoludata.com/tracker2 \o/ Will find the API docs and see if I can fetch them with curl.

michielbdejong commented 2 years ago
curl -X 'GET' \
  'https://timesheet.dev3.evoludata.com/api/tabulars' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer dbcafe758b...'

{
  "title": "Tabular Formats",
  "list": [
    {
      "tabularId": "6",
      "name": "Timesheet - Full",
      "trackerId": "2"
    },
    {
      "tabularId": "7",
      "name": "Timesheet - Time",
      "trackerId": "2"
    },
    {
      "tabularId": "8",
      "name": "Timesheet - Scoro",
      "trackerId": "2"
    },
    {
      "tabularId": "9",
      "name": "Timesheet - Mite",
      "trackerId": "2"
    },
    {
      "tabularId": "10",
      "name": "Timesheet - pondersource",
      "trackerId": "2"
    },
    {
      "tabularId": "11",
      "name": "Timesheet - timeld",
      "trackerId": "2"
    }
  ]
}

So the tabulars seem to be export formats, all of them are for Tracker2 which is the one we want so that's good. I'll try 'full'

michielbdejong commented 2 years ago

curl -X 'GET' \
  'https://timesheet.dev3.evoludata.com/api/tabulars/6/export' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer dbcafe758b...'

works! \o/
mcalligator commented 2 years ago

@michielbdejong which authorization option did you use to obtain the bearer token? Manual creation or using a Tiki OAuth 2.0 server?

michielbdejong commented 2 years ago

I received it from Ismoil via Slack message :)

kroky commented 2 years ago

OAuth server is not setup, I think. I can issue an access token for your user once you register. It is a manual operation for the moment.

mcalligator commented 2 years ago

Thanks both! I've just seen on the relevant Federated Timesheets Wiki page that they can be obtained from Evoludata - now that I've registered, I'll request one from you by DM, @kroky.