# BlackBook Gem

**URL:** <https://www.ruby-forum.com/t/blackbook-gem/157319>\
**Category:** Rails\
**Created:** [January 9, 2009, 11:30am UTC](https://www.ruby-forum.com/t/blackbook-gem/157319 "2009-01-09T11:30:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudgilgaurav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Post date:** [January 9, 2009, 11:30am UTC](https://www.ruby-forum.com/t/blackbook-gem/157319/1 "2009-01-09T11:30:22Z")

</div>

Hi All

I am new to BlackBook Gem , and i am really exited to implement this  
utility in my web application to enable the users of my website to fetch  
their contacts from the AOL , Yahoo , Gmail etc.

My Application is implemented in PHP. So please suggest me how to use  
blackbook gem with my existing PHP application.

Any help or suggestion would be greatly appriciated.

Thanks  
Gaurav

---

<div class="post-metadata">

**Author:** ![mudgilgaurav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Post date:** [January 9, 2009, 11:44am UTC](https://www.ruby-forum.com/t/blackbook-gem/157319/2 "2009-01-09T11:44:21Z")

</div>

On 9 Jan 2009, at 10:30, Gaurav S. wrote:

> Hi All
> 
> I am new to BlackBook Gem , and i am really exited to implement this  
> utility in my web application to enable the users of my website to  
> fetch  
> their contacts from the AOL , Yahoo , Gmail etc.
> 
> My Application is implemented in PHP. So please suggest me how to use  
> blackbook gem with my existing PHP application.  
> It’s a ruby library. You can only access it from ruby, so I suggest  
> you learn some ruby

Fred

---

<div class="post-metadata">

**Author:** ![mudgilgaurav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Post date:** [January 9, 2009, 11:46am UTC](https://www.ruby-forum.com/t/blackbook-gem/157319/3 "2009-01-09T11:46:29Z")

</div>

Frederick C. wrote:

> On 9 Jan 2009, at 10:30, Gaurav S. wrote:
> 
> > Hi All
> > 
> > I am new to BlackBook Gem , and i am really exited to implement this  
> > utility in my web application to enable the users of my website to  
> > fetch  
> > their contacts from the AOL , Yahoo , Gmail etc.
> > 
> > My Application is implemented in PHP. So please suggest me how to use  
> > blackbook gem with my existing PHP application.  
> > It’s a ruby library. You can only access it from ruby, so I suggest  
> > you learn some ruby
> 
> Fred

Hi Fred

Thanks for your response , can i embed this ruby application in my PHP  
application.??

---

<div class="post-metadata">

**Author:** ![mudgilgaurav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Post date:** [January 20, 2009, 9:30am UTC](https://www.ruby-forum.com/t/blackbook-gem/157319/4 "2009-01-20T09:30:15Z")

</div>

Sazima wrote:

> Gaurav,
> 
> You can have rails and PHP co-existing in the same server, but you  
> would have to “glue” the applications together… You cannout use the  
> gem directly in your PHP application.
> 
> Cheers, Sazima
> 
> On Jan 9, 8:46ï¿½am, Gaurav S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Hi Sazima,

Thanks for your response , can i invoke the ruby file/application that  
is using gem and returning the output to the PHP variable or i need to  
develop an web service in ruby and to invoke that web service from PHP.

Waiting for your response.

Thanks  
Gaurav

---

<div class="post-metadata">

**Author:** ![mudgilgaurav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Post date:** [January 9, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/blackbook-gem/157319/5 "2009-01-09T15:09:42Z")

</div>

Gaurav,

You can have rails and PHP co-existing in the same server, but you  
would have to “glue” the applications together… You cannout use the  
gem directly in your PHP application.

Cheers, Sazima

On Jan 9, 8:46 am, Gaurav S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![mudgilgaurav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Post date:** [January 20, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/blackbook-gem/157319/6 "2009-01-20T19:47:59Z")

</div>

Well, you could develop a shell script / rake task or something like  
this, but I think its cleaner to do it via web service.

Cheers, Sazima

On Jan 20, 6:30 am, Gaurav S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
