Jump to content
Ding

Coding a Hatchery

Recommended Posts

13 hours ago, FortyTwo said:

 

1)

When I set up mine I used the details for my VPS (virtual private server).  Localhost is fine for local development and testing but you'll need to fill out the API with the details of where you'll eventually be deploying your site. If you need to change them in the future, you can just email TJ with the new details.

 

So for mine:

  • Site URL: chazza.me
  • IP: IP of my VPS (your webhost should provide this)

2)

a) Correct.

b) Also correct.

 

Don't leak the private key (easily done if you accidentally call the API from the frontend instead of backend). API usage is in the documentation but essentially if your key is ABCDEFGHI1234565 and you want to fetch a user's dragons (the /user call) then your website will need to make a GET request to

https://dragcave.net/api/ABCDEFGHI1234565/json/user/Kingchobab

 

Currently the public key is only used if you require the login verification functionality. I don't use it myself but as I understand it:

3)

Not sure, you'll need to try that one!

 

 

 

Thank you very much for your detailed answer!! I didn't understand the login process, but now I got it!

Share this post


Link to post

Good to see this post still exists after 13 years! ::blows off the dust:: 🤣

 

I feel it probably needs a major overhaul and updates. 

 

think at this point in my programming knowledge/experience I would go the JSON/JS route for a potential hatchery. That being said, while I will edit my initial post (clean up the links and such) to have both PHP and JS resources, I'd most likely lean more heavily into JS. 

 

Lots to think about and reorganize! 

Share this post


Link to post


  • Recently Browsing   0 members

    • No registered users viewing this page.