![]() |
libgmailer experience?
Hi all,
I'm trying to set up a page on my site to use libgmailer, an open source set of PHP classes for remotely connecting to Gmail. What I'm trying to do is figure out how many invitations I have left. Unfortunately, nothing's working. Here's the code of my main "gmail.php" file: Code:
<?phpCode:
function getInfo() {Code:
array(4) {Thanks! Dave |
Re: libgmailer experience?
Quote:
Code:
if (isset($raw["i"][1])) $this->have_invit = $raw["i"][1];Code:
function getInfo() {EDIT (Again): Just looked over the code, and $this->have_invit is set from the array put in as a parameter, so I don't think you can get the amount of invites from calling this function =( Maybe some creative use of sockets and regular expression functions would let you parse the info out? |
Re: libgmailer experience?
I think that $raw IS set, because I call:
$gmail->fetchBox(GM_STANDARD, "inbox", 0); Looking through this, we see it fires: Code:
$this->fetch($q);Code:
$this->raw = $packets;In this same fetch function, the data returned from GMail is in the $inbox variable. I shot it out to HTML via: Code:
echo "<textarea>".$inbox."</textarea>";Code:
<script>top.location="https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%3Fui%3Dhtml%26zy%3Dl";</script>Thanks! Dave |
Re: libgmailer experience?
Try echo'ing out $this->raw after it's set in fetch()
|
Re: libgmailer experience?
It's an empty array:
Code:
array(0) { }Dave |
Re: libgmailer experience?
Quote:
|
| All times are GMT -5. The time now is 03:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi