1
0
-1

For example, I was able to request the data for an animalColors publicSearch using the sample API request page and Postman. However, if I were to want to script this in a PHP function, how would I accomplish this? Any info or suggestions would be great! I've scoured the rescuegroups website but I haven't had any luck so far. Thanks! 

    CommentAdd your comment...

    2 answers

    1.  
      3
      2
      1

      Here's a good place to start: https://www.allphptricks.com/create-and-consume-simple-rest-api-in-php/

      Once you understand how all that works, you might decide to invest some time in learning a more modern way of doing it like this: https://dev.to/shahbaz17/build-a-simple-rest-api-in-php-2edl

      This is arguably an easier but also more complicated way to do it, so maybe you check out both methods and see what makes more sense to you.

      Full disclosure: I'm a software developer who personally dislikes PHP and would highly recommend doing this in a better language like JavaScript (via Node.js), Python (via Flask) or Perl (via Mojolicious).

      1. Joshua Jen

        Thanks so much! I really appreciate it! I would definitely consider using a different language, but since this is for a school project and my teammates are all more experienced with PHP, I'll have to do it using that, but I'll also definitely look into doing this in a better language for next time! Thanks again!

      CommentAdd your comment...
    2.  
      2
      1
      0

      Definitely take a look at Dudley Adams' reply. But also, we have a page in our API Developer's Guide as well with some help: Full working PHP example.

      1. Joshua Jen

        Thanks a lot Richard! That will definitely help a lot as well, appreciate it!

      CommentAdd your comment...