makeWebRequest example in docs contains ':methods' property instead of ':method'

Former Member
Former Member
The example makeWebRequest call found at https://developer.garmin.com/downloa...nstance_method contains the incorrectly name ':methods' property as part of the options object. It should be ':method'.

It was frustrating trying to work that out when using the example code as a starting point and attempting to make a POST request!

The blurb following the example in the docs contain the correctly named property:

:method (Toybox::Lang::Number) ?
The HTTP method of the request. This should be an HTTP_REQUEST_METHOD_* value.


Please update the example in the documentation.

It would also have been helpful if the property names present in the 'options' object were validated by the makeWebRequest function, with an error message returned if an unsupported property name was used. That would have saved me a fair bit of time.