Http autentication and restful_authentication

Hi,

I’ve started the long task of adding an API to a project of mine.

Since I need to write a PHP library for it I will use for inspiration
the one for Basecamp(GitHub - quirkey/basecamphp: PHP Wrapper for the 37 Signals Basecamp API).

However that library uses http authentication, and I have a setup with
restful_authentication(cookies).

Is there a way to make restful authentication accept users coming from
http auth?

Cheers,

M.