How to get risdb query using php?

Version 1
    This document was generated from CDN thread

    Created by: Venkatesan K on 27-08-2010 11:50:18 AM
    Hi,
     
    I am developing an application to get the CUCM phone details using PHP.
     
    Can anyone have idea about risdb access using php... Please help me...
     
    Thanks in advance...
     
    Venkat
     

    Subject: RE: How to get risdb query using php?
    Replied by: Venkatesan K on 27-08-2010 12:28:42 PM
    AXL support is useful to me...
     
    I can retrive the risdb data... but i can get only 200 records... will it possible to get full data...
     
    Venkat

    Subject: RE: How to get risdb query using php?
    Replied by: Jan Seynaeve on 21-08-2013 03:29:45 AM
    Aha, PHP, I'm doing some stuff in PHP too. There is indeed a limit of 200 i think (going up to 1000 in version 9 i t hink) you can retrieve at once for RIS + there's a 15 requests/min limit too.

    So, for my phone needs, i query the DB for all phones i need and then array_chunk that in smaller arrays of 200 out of which i create the RIS request, see code attached (i'm not a professional programmer, but the comments should explain most of it)

    Not 100% sure if all the details are 'best practice', but it works for me ;-)

    Regards,
    Jan.

    Subject: RE: How to get risdb query using php?
    Replied by: Jan Seynaeve on 21-08-2013 03:58:16 AM
    Aha, PHP, I'm doing some stuff in PHP too. There is indeed a limit of 200 you can retrieve at once for RIS (going up to 1000 in version 9 i t hink) + there's also a 15 requests/min limit.

    So, for my phone needs, i query the DB for all phones i need and then array_chunk that in smaller arrays of 200 out of which i create the RIS request, see code attached (i'm not a professional programmer, but the comments should explain most of it)

    Not 100% sure if all the details are 'best practice', but it works for me ;-)

    Regards,
    Jan.

    Subject: RE: How to get risdb query using php?
    Replied by: Bruno RIGUET on 21-08-2013 02:58:29 AM
    Hello,
    is it possible for you to show me how you retrieve records in PHP ?
    With python, I've lots of difficults to retreive it.
    Best regards.

    Subject: RE: How to get risdb query using php?
    Replied by: Bruno RIGUET on 21-08-2013 04:02:47 AM
    many thanks ;)