OAuth and REBOL

OAuth is used by many online services (Twitter, Etsy are but two) to provide secure authentication for requests. The above scheme allows such authenticated requests in REBOL.

read [
scheme: 'oauth
url: https://someoauth.net/some/method
target: 'get ; http method
key: make key [
consumer-key: <a consumer key>
consumer-secret: <a consumer secret>
user: make user [
token: <a user key>
secret: <a user secret>
awake: :load-json

For a more comprehensive HTTP protocol geared toward REST transactions, see the REST Protocol.