Micronomy



B3 Init

Jonas Linde <jonas.linde@b3.se>

Vad?

img/question.png

Varför?

img/deltek-touch.jpg

API?

img/firebug.png

Språk?

img/curl.jpg

Första steget - autentisering

img/padlock.png

Första steget - autentisering

server=b3iaccess.deltekenterprise.com
url=https://$server/containers/v1/b3/timeregistration

token=$(curl -Ins -H Maconomy-Authentication:X-Reconnect $url |
          sed -n 's/^Maconomy-Reconnect: //pi' | tr -d '\r\n')

curl -s -H Authorization:"X-Reconnect $token" \
     "$url/data;any?card.datevar=2019-12-06" | jq -C . | less
img/dominoes.png

Data

{
  "meta": {},
  "links": {},
  "panes": {
    "card": {},
    "table": {
      "meta": {},
      "links": {},
      "records": [
        {
          "meta": {},
          "links": {},
          "data": {}
        },
      ],
      ...
    }
  }
}
img/425.jpg

Registrera timmar

curl -H "Authorization: X-Reconnect $token"
     -H "Maconomy-Concurrency-Control: $concurrency" \
     -H "Content-Type: application/json" \
     -d '{"data": {"numberday5": 3}}' \
     "$url/data;any/table/$rownum?card.datevar=2019-12-06"
img/clock.jpg

Cro

img/cro.png

Cro::WebApp

├ service.p6
├ lib/
│ ├ Micronomy.pm6
│ └ Routes.pm6
└ resources/
  ├ b3.png
  ├ script/
  │ ├ jquery-3.4.1.slim.min.js
  │ └ nav.js
  ├ styles/
  │ └ micronomy.css
  └ templates/
    ├ login.html.tmpl
    └ timesheet.html.tmpl
img/206.jpg

Raku

img/camelia-logo.png

Nytt mellan 6.c och 6.d

img/200.jpg

Tack för ordet!

img/dominoes2.jpg img/509.jpg