node-oauth-1.0aOAuth 1.0a Request Authorization for Node and Browser
Send OAuth request with your favorite HTTP client (request, jQuery.ajax...) or fetch)
authorize. As it no longer mutate input,
the input string no longer get escaped correctly per OAuth spec. To remedy this: - If you build POST body yourself, use the `buildQueryString` method instead of `querystring.encode`. - Otherwise, make sure that your parameters are encoded with `percentEncode` instead of `encodeURIComponent`. It is available at `require('node-oauth-1.0a/src/utils').percentEncode`.
Difference to oauth-1.0a
- The code is broken down to multiple files and rewritten to a subset of ES6.
expected that the code will change to full ES6.
- Use libraries instead of shipping with some common algorithms.
- Large parts of the API are made private
- The public API should be compatible with some changes
authorizeand its inner methods no longer mutate input. -
getHeaderwith the same signature as