Use a REST API: Difference between revisions
m
→{{header|Wren}}: Minor tidy
Jazzedpineda (talk | contribs) (Omitted EasyLang) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 900:
I did wonder whether it was worth the effort to do this task given that we're using a deprecated API and can't test creating events without a paid subscription which I don't have. However, from Wren's viewpoint, there are some points of interest relating to the use of WrenGo - notably passing Wren maps to Go - which may be a useful reference for the future.
<syntaxhighlight lang="
import "./date" for Date
Line 994:
<br>
We now embed this in the following Go program and build it. To run it, you will need the necessary authorization, a paid subscription and, of course, non-fictitious data.
<syntaxhighlight lang="go">/* go build
package main
Line 1,237:
module := wren.NewModule(classMap)
fileName := "
vm.SetModule(fileName, module)
vm.InterpretFile(fileName)
|