Skip to content
Discussion options

You must be logged in to vote

Found it in a community widget example, but it's also in the doc, my bad, apparently a dynamic request needs this approach, too bad we can't have dynamic parameters with original approach, it looks way cleaner that way :

              {{ $tomorrow := offsetNow "24h" | formatTime "2006-01-02" }}
              {{ $response := newRequest "https://api.fostplus.be/recyclecms/public/v1/collections"
                      | withHeader "x-consumer" "XXXXXXXX"
                      | withParameter "zipcodeId" "XXXXXXXX"
                      | withParameter "streetId" "XXXXXXXX"
                      | withParameter "houseNumber" "XXXXXXX"
                      | withParameter "size" "10"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RLoris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant