The following sections provide quick start examples of using OAuth in various common coding languages. BOSS API is providing this information to help you get up and running quickly with your BOSS API implementations. These self-serve samples are provided for you to use have been contributed by the BOSS User Community.
Please make sure to add your "ADD YOUR KEY HERE" and "ADD YOUR SECRET HERE" in the appropriate places in the code examples below.
All code samples below are adapted from original contributions. Contributors are noted.
Perl*
Perl 5.8+
Location: http://www.perl.org/get.html
extra mods:
http://search.cpan.org/dist/Net-OAuth/
http://search.cpan.org/dist/LWP-Protocol-socks/
http://search.cpan.org/~makamaka/JSON-2.53/lib/JSON.pm
* Specific CPAN Modules are required. Please see the code for required modules.
Example: example.rb
Ruby
oauth_util.rb
Location: https://gist.github.com/383159
License: https://gist.github.com/375593
Example: boss_test.cs
C#
Location: http://oauth.googlecode.com/svn/code/csharp/OAuthBase.cs
License: Unknown
Contributor: Bryan Meverovich
Example: SignPostTest.java
Example: StHTTPRequest.java
Java
SignPost
Location: http://code.google.com/p/oauth-signpost/
License: http://www.apache.org/licenses/LICENSE-2.0
Contributor: David Hardtke
Apache Logger
Example: Node.JS
Node.JS
Contributor: Heber Allred