This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
module namespace oauth="http://history.state.gov/ns/xquery/oauth"; | |
(:~ A library module for signing and submitting OAuth requests such as the kind needed for the Twitter v1.1 API. | |
The EXPath Crypto library supplies the HMAC-SHA1 algorithm. The EXPath HTTP Client library makes the HTTP requests. | |
The OAuth standard requires a "nonce" parameter - a random string. Since there is no implementation-independent | |
nonce function in XQuery, we must rely on implementation-specific functions. For eXist-db we use util:uuid(). |