Unable to determine API Version

Discussion in '[bd] API' started by dodgeuk19, Nov 8, 2014.

  1. dodgeuk19

    dodgeuk19 New Member

    HI,
    i have installed a test setup to get this working,
    i have installed all the pre req's and followed all the instructions on the pages but still cannot get connected.
    when i go to the the file i can see all the text as i should.

    i have wordpress installed in a different director ../WORDPRESS
    xenforo is installed in ../forum

    i have Wordpress 4.0 installed and Xenforo 1.4.2

    any help please
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    What is the root URL that you entered into WordPress?
     
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    When you go to http://www.domainname.com/forum/api, what do you get?
    Also, please double check the client key / secret and WordPress and make sure there are no extra spaces. It must be exact.
     
  4. dodgeuk19

    dodgeuk19 New Member

    I get what looks like the contents from the file,

    I manually typed the key.

    Does it work with the latest versions of xenforo and Wordpress ?
     
  5. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Can you take screenshot / copy the contents you get?

    Why don't you copy the key / secret? It's a bit complicated to type don't you think? Also, it is case sensitive.

    Yes, the solution works with latest version of both systems.
     
  6. dodgeuk19

    dodgeuk19 New Member

    I'm just reinstalling now will send it to you asap.
    i did copy and paste however i wanted to make sure it was correct,

    does it work if both are in sub directories or does one have to be in the root ?
     
  7. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Directory doesn't matter. It even works if you have them on different servers.
     
  8. dodgeuk19

    dodgeuk19 New Member

    this is what i get

    Code:
    {"links":{"categories":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?categories\/","conversations":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?conversations\/","conversation-messages":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?conversation-messages\/","notifications":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?notifications\/","forums":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?forums\/","posts":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?posts\/","search":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?search\/","threads":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?threads\/","threads\/recent":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?threads\/recent","threads\/new":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?threads\/new","users":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?users\/","oauth_authorize":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?oauth\/authorize","oauth_token":"http:\/\/dailyfunniesonline.co.uk\/forum\/api\/index.php?oauth\/token"},"system_info":{"visitor_id":0,"time":1415823382}}
     
  9. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    That looks good.
     
  10. dodgeuk19

    dodgeuk19 New Member

    This is my WP settings
    upload_2014-11-12_20-24-55.png

    and my Xenforo settings

    upload_2014-11-12_20-25-47.png

    when i go to ../forum/api this is what i get

    upload_2014-11-12_20-26-28.png
     
  11. dodgeuk19

    dodgeuk19 New Member

    got this sorted thanks,
     
    xfrocks likes this.
  12. timquinn

    timquinn New Member

    how did you get this sorted? I'm having the same issue
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @timquinn Normally this happen if the url is entered wrong in the WordPress Dashboard. Also, do you have password protected for the XenForo directory? That may cause issue too.
       
  13. timquinn

    timquinn New Member

    got this sorted out through the awesome and prompt help of xfrocks - thanks man!!!
     
    xfrocks likes this.
Loading...