Uploaded image for project: 'Kayako Python API Library'
  1. Kayako Python API Library
  2. PYTHONAPI-13

If userid >999, api.first() method did not display results.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Labels:
      None

      Description

      Steps to replicate:

      Create a user with userid > 999 and run the following Python script:

      from kayako import KayakoAPI, Department, User, UserGroup, FOREVER
      API_URL = 'http://192.168.33.10/K4/trunk/api/index.php'
      API_KEY = '04a7e288-557d-9934-392a-5b6703b4e0f8'
      SECRET_KEY = 'YzJmNzI2YWUtZTg3Zi0wNjY0LWY5NWMtMWY2MDdkZGJiZTJlYzdjMDBkMGQtNTEzMy02N2Q0LTA5ZTktMDMyOWQzMDA5OWQ5'
      api = KayakoAPI(API_URL, API_KEY, SECRET_KEY)
      registered = api.first(User, email='testkayako333@gmail.com')
      print registered
      

      It will return NONE as results. Same script works fine with userid<999.

        Attachments

          Activity

            People

            • Assignee:
              ravi.sharma Ravi Sharma
              Reporter:
              gurpreet.singh Gurpreet Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: