JSONAPI

Discussion in 'Plugin Development' started by NoLiver92, Oct 21, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    NoLiver92

    Im looking at the JSONAPI and i understand how to do it BUT i am after an explanation of this:

    PHP:
    $api = new JSONAPI("localhost"20059"username""password""salt");
    I believe that the first 4 variables are the server information. am i right?
    But what is the salt and where do i find this information?
     
  2. Offline

    Minecrell

  3. Offline

    NoLiver92

    Minecrell I know how the api methods work, this is where i got the information and my question from. I have searched the wiki and i cant find the answer im looking for.

    But my question is what is the salt (vlaue) and where is this got from as i cant find a salt tag in the plugin config but its asking for it in the php section.
     
  4. Offline

    Minecrell

  5. Offline

    Khan Jal

    Under config.yml put a new node under options: called salt: yoursalthere
     
  6. Offline

    NoLiver92

    Khan Jal
    can the salt be anything?
     
  7. Offline

    Minecrell

    Yes (it should be a string).
     
  8. Offline

    Khan Jal

    Yes. It accepts letters, numbers and all symbols. No spaces though.
     
Thread Status:
Not open for further replies.

Share This Page