VROW Workshop
September 06, 2010, 10:10:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the VRO Workshop Forums!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Trying to use plain API  (Read 2832 times)
brian
Newbie
*
Posts: 6


« on: April 25, 2009, 11:28:03 AM »

Hello.

I have experimented with the hosted version and was quite pleased with the results.

After some trials (mostly around expired licenses) I found the jacapi_SEP112008.zip in this forum

I got it working, sorta.  I had to set php error to "error_reporting = E_ERROR" to eliminate warnings, etc. that were corrupting the xml.

Now when I try ...
http://localhost/jaccalendar/jacxml/jacxml_showxml.php?source=ha&id=p200268
I get
<property>
 <bookings>
  <item>
   <date_in>2000-01-01</date_in>
   <nights>1</nights>
   <type_id>1</type_id>
   <note>No bookings found for this property</note>

  </item>
  <item>
   <date_in>2000-01-02</date_in>
   <nights>1</nights>
   <type_id>1</type_id>
   <note>No bookings found for this property</note>
  </item>

 </bookings>
</property>


WHen I try the same property via the hosted version I get
http://www.therentalcalendar.com/jac/show/xml/brian2

<property>
   <dbid>869</dbid>
   <id>brian2</id>
   <name>brian2</name>
   <slogan>brian2</slogan>
   <source>ha</source>
   <sourceid>p200268</sourceid>

   <owner_id>626</owner_id>
   <owner></owner>
   <phone></phone>
   <email></email>
   <website></website>
   <theme></theme>
   <listing>
      <description>Please use the configure property menu to add a description and other characteristics of your property! You should also add an email for the contact form available for this property.</description>

      <country>USA</country>
      <beds>0</beds>
      <baths>0</baths>
      <sleeps>0</sleeps>
      <pets>0</pets>
      <smoking>0</smoking>

      <handicap>0</handicap>
   </listing>
   <bookings>
      <item>
         <date_in>09-04-03</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-04-04</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-04-10</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-04-11</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-04-12</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-04-16</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-04-17</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-04-18</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-04-25</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-04-26</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-04-27</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-04-28</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-04-29</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-04-30</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-01</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-02</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-03</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-05-04</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-05-05</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-05-06</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-07</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-08</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-09</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-10</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-05-11</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-05-17</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-05-18</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-21</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-22</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-23</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-05-24</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-05-25</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-05-26</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-06-06</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-07</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-13</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-14</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-23</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-06-24</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-06-25</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-06-26</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-27</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-28</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-29</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-06-30</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-07-01</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-07-02</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-07-03</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-04</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-05</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-06</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-07</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-07-08</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-07-09</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-07-10</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-16</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-17</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-18</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-07-19</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-07-24</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-07-25</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-07-26</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-08-03</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-08-04</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-08-05</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-08-06</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-08-07</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-08-08</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-08-24</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-08-25</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-11-24</date_in>
         <type_id>1</type_id>

         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-11-25</date_in>
         <type_id>1</type_id>
         <nights>1</nights>

         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-11-26</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>

      </item>
      <item>
         <date_in>09-11-27</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>

      <item>
         <date_in>09-11-28</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>

         <date_in>09-11-29</date_in>
         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
      <item>
         <date_in>09-11-30</date_in>

         <type_id>1</type_id>
         <nights>1</nights>
         <note>Imported from HomeAway.Com</note>
      </item>
   </bookings>
</property>






Logged
jacmgr
jacMGR
Administrator
Full Member
*****
Posts: 164


WWW
« Reply #1 on: April 25, 2009, 06:25:47 PM »

I haven't kept up the api distribution filess since I really have not had much interest from anyone.  The "HA" connector file in the distro is not up to date with the current working HA connector that is used on the jAC site directly.

For now, you can achieve the same thing by doing:

 http://localhost/jaccalendar/jacxml/jacxml_showxml.php?source=jac&id=brian2

That means the property has to be in jAC of course.

Next week I will have some time to correct the distribution files and I will send them to you.  Then the link with source=ha should work directly.

My wife begins her annual 4 week vacation next week, which means I am free to spend time doing as much programming as I want for those 4 weeks.  So if you have any ideas on how to generate interest in this project, or ideas on what I should change then I would like to here them!

Its a short 4 week window, but that's all I got!
Logged

jacMGR
brian
Newbie
*
Posts: 6


« Reply #2 on: April 26, 2009, 09:25:24 AM »


John

Thanks for the quick reply.   I'll look forward to hearing from you next week.  Once I'm able to test with a variety of the rental calendars, I'll gather together some ideas and suggestions. 


Thanks Again,

-brian
Logged
brian
Newbie
*
Posts: 6


« Reply #3 on: April 28, 2009, 09:54:16 AM »

One suggestion - provide a command line interface
Logged
jacmgr
jacMGR
Administrator
Full Member
*****
Posts: 164


WWW
« Reply #4 on: April 28, 2009, 03:31:03 PM »

Could you explain more what a command line interface would be, possibly a website that has examples?
Logged

jacMGR
brian
Newbie
*
Posts: 6


« Reply #5 on: May 01, 2009, 10:28:30 AM »

nothing fancy - just the ability to call from the command line.
for example...

>php showxml.php source=ha id=p200268
Logged
brian
Newbie
*
Posts: 6


« Reply #6 on: May 01, 2009, 10:29:21 AM »

Is there an updated version of the locally hosted API available?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.769 seconds with 18 queries.