7 messages in com.googlegroups.google-base-data-api[Google-Base-API] Re: housing posting...| From | Sent On | Attachments |
|---|---|---|
| DonMarcos | 27 May 2008 17:26 | |
| Eric (Google) | 27 May 2008 23:25 | |
| Marcos Oliva | 27 May 2008 23:30 | |
| Marcos Oliva | 27 May 2008 23:34 | |
| Eric (Google) | 28 May 2008 12:03 | |
| Marcos Oliva | 28 May 2008 12:14 | |
| Eric (Google) | 03 Jun 2008 16:55 |
| Subject: | [Google-Base-API] Re: housing posting issue-question![]() |
|---|---|
| From: | Eric (Google) (api....@google.com) |
| Date: | 06/03/2008 04:55:21 PM |
| List: | com.googlegroups.google-base-data-api |
My apologies, I misunderstood your post.
I couldn't find an explicit explanation in the Zend documentation, but the issue really boils down to the magic factory methods implemented to make creating the atom elements easier:
http://framework.zend.com/manual/en/zend.gdata.html#zend.gdata.introdduction.magicfactory
If you look at the library itself, newAuthor() does not actually exist. It's 'automagically' called using __call() in Zend_Gdata_App. The arguments are expected to be objects of Zend_Gdata_App_Extension_Name and Zend_Gdata_App_Extension_Email.
So, you could do something like: $author = $service->newAuthor($service->newName('John Doe'), $service-
newEmail('t....@asdf.com'));
$newEntry->setAuthor(array(0 => $author));
but the two arguments cannot be strings.
Hope this helps,
Eric
On May 28, 12:15 pm, "Marcos Oliva" <marc...@gmail.com> wrote:
;-) Eric
thanks I got that, what I was referring here was is this was DOCUMENTED, besides the blogger post
is there somewhere within the google base zend lib where this is explained as to why this will not work ?;
$newEntry->Author = $service->newAuthor($FormName[agent], $FormName[agentEmail]);
marcos
On Wed, May 28, 2008 at 12:03 PM, Eric (Google) <api....@google.com> wrote:
Which document?
The Blogger post was here:
Eric
On May 27, 11:34 pm, "Marcos Oliva" <marc...@gmail.com> wrote:
Eric
that worked, thank you very much ,
where is this documented ?
marcos oliva
On Tue, May 27, 2008 at 11:30 PM, Marcos Oliva < marc...@gmail.com> wrote:
Eric
thank you , let me try that
I am using the Zend libraries right now
thank you
marcos
On Tue, May 27, 2008 at 11:25 PM, Eric (Google) <api....@google.com> wrote:
Hi Marcos,
Did I answer this question in your other thread?
Eric
On May 27, 5:27 pm, DonMarcos <marc...@gmail.com> wrote:
Hello
I am trying to post the following, everything but the Author tag Content tag are not working, maybe somebody can give me a hint as to what is going on ?
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"> <atom:author> <name type="text">Agent</name> <email type="text">ag....@here.com</email> </atom:author> <atom:title type="text">Test for Now , please delete</atom:title> <atom:content type="text">Property Description</atom:content> <item_type xmlns="http://base.google.com/ns/1.0" type="text">housing</item_type> <price xmlns="http://base.google.com/ns/1.0" type="floatUnit">12,000</price> <location xmlns="http://base.google.com/ns/1.0" type="location">123 main street Bell CA 90201 us </location> <agent xmlns="http://base.google.com/ns/1.0" type="text">Agent</ agent> <area xmlns="http://base.google.com/ns/1.0" type="number">4567</ area> <bathrooms xmlns="http://base.google.com/ns/1.0" type="number">4</ bathrooms> <bedrooms xmlns="http://base.google.com/ns/1.0" type="number">5</ bedrooms> <broker xmlns="http://base.google.com/ns/1.0" type="text">Broker</ broker> <quantity xmlns="http://base.google.com/ns/1.0" type="int">1</ quantity> <listing_Status xmlns="http://base.google.com/ns/1.0" type="text">active</listing_Status> <listing_type xmlns="http://base.google.com/ns/1.0" type="text">for sale</listing_type> <lot_size xmlns="http://base.google.com/ns/1.0" type="number">3</ lot_size> <mls_listing_id xmlns="http://base.google.com/ns/1.0" type="text">MLS 1234567890</mls_listing_id> <mls_name xmlns="http://base.google.com/ns/1.0" type="text">MLS name</mls_name> <property_taxes xmlns="http://base.google.com/ns/1.0" type="number">1,200</property_taxes> <provider_class xmlns="http://base.google.com/ns/1.0" type="text">broker</provider_class> <school_district xmlns="http://base.google.com/ns/1.0" type="text">School District</school_district> <style xmlns="http://base.google.com/ns/1.0" type="text">Spanish</ style> <year xmlns="http://base.google.com/ns/1.0" type="number">2000</ year> </atom:entry>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to Goog...@googlegroups.com
To unsubscribe from this group, send email to
Goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---




