# Api calls using ruby scripting

**URL:** <https://www.ruby-forum.com/t/api-calls-using-ruby-scripting/149952>\
**Category:** Ruby\
**Created:** [October 1, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/api-calls-using-ruby-scripting/149952 "2008-10-01T15:19:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rage989](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4af34b/32.png) [@rage989](https://www.ruby-forum.com/u/rage989)\
**Post date:** [October 1, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/api-calls-using-ruby-scripting/149952/1 "2008-10-01T15:19:00Z")

</div>

Hi,  
I am trying to write some automation script using ruby for some of the  
api calls. There is api sign which is in md5 hash format. How can i  
handle this case using ruby.

---

<div class="post-metadata">

**Author:** ![rage989](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4af34b/32.png) [@rage989](https://www.ruby-forum.com/u/rage989)\
**Post date:** [October 1, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/api-calls-using-ruby-scripting/149952/2 "2008-10-01T15:44:38Z")

</div>

On Oct 1, 2008, at 8:17 AM, Raj Kumar wrote:

> I am trying to write some automation script using ruby for some of the  
> api calls. There is api sign which is in md5 hash format. How can i  
> handle this case using ruby.

#!/usr/bin/env ruby -wKU

require “md5”

data = “James Edward G. II”  
puts MD5.md5(data)

**END**

Hope that helps.

James Edward G. II
