Announcement

Collapse
No announcement yet.

Integration methods using REST, web services, ODBC

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integration methods using REST, web services, ODBC

    Is there an API that supports writing and pulling data from vb, to search and create new members? I'd also be willing to try direct forms of integration (ODBC, rest, web services) if it's supported.

  • #2
    You can see the vBulletin 5 API in /core/vb5/api/

    There is basic documentation here: http://vb5support.com/resources/api/

    You will want to look at the vB_Api_* classes.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      Thanks Wayne, I'll have to bookmark that. Do you know if there's any reference material for odbc, ws or rest? Or if they can even be used?

      Comment


      • #4
        The API is Restful. We don't have functionality for ODBC or Web Services.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • #5
          Ok thanks again.

          Comment


          • #6
            How do you call these API's externally? Alternatively, could I create a php page in VB, and use a script to call the php page?

            Comment


            • #7
              This should get you started.
              http://www.vbulletin.com/forum/blogs...n-your-website


              Comment


              • #8
                If the caller of the API is on the same server, then you could use the technique used in the post that Replicant linked.

                Otherwise, you could call the Rest API which has a format of:

                Code:
                <baseurl>/ajax/api/<class>/<method>
                For example,

                To call the fetchProfileInfo($userid) method from user API:

                URL:
                Code:
                <baseurl>/ajax/api/user/fetchProfileInfo
                Method: POST (almost all methods require POST)

                Payload:
                Code:
                { "userid": 1 }
                The format of the response is JSON. If the response status is 200 but contains "errors" array, then the call fails, otherwise, successful.
                Last edited by Glenn Vergara; Thu 10 Nov '16, 8:14pm.

                GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                Comment


                • #9
                  Replicant Glenn Vergara This is great. Thank you for sharing!

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X