Use a REST API: Difference between revisions

m
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Minor tidy)
 
(One intermediate revision by one other user not shown)
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="ecmascriptwren">/* meetupUse_a_REST_API.wren */
 
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 meetupUse_a_REST_API.go */
 
package main
Line 1,237:
 
module := wren.NewModule(classMap)
fileName := "meetupUse_a_REST_API.wren"
vm.SetModule(fileName, module)
vm.InterpretFile(fileName)
vm.Free()
}</syntaxhighlight>
 
{{omit from|EasyLang}}
9,476

edits