WordPress External API Integration :: New York Best seller API using Secret key and query parameters

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 71

  • @GoTechUG
    @GoTechUG 4 ปีที่แล้ว +3

    This is the video that i've never seen anywhere. Thank you so much for being so generous with your knowledge.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Glad it was helpful!

    • @TheHsystem
      @TheHsystem 3 ปีที่แล้ว

      I second, very helpfull

  • @Kinho88
    @Kinho88 ปีที่แล้ว

    Wonderful video ! thank you very much !

  • @rodrigopereiradacosta378
    @rodrigopereiradacosta378 2 ปีที่แล้ว

    That's a great content, helped me a lot.

  • @alvaurah
    @alvaurah 3 ปีที่แล้ว

    God bless you! this is what I've been looking for! Thank you!

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Glad you found value here.

  • @MysticOblong
    @MysticOblong 3 ปีที่แล้ว +5

    Thanks for sharing your knowledge. This was very informative. What is the advantage of using a new database table to store the data rather than storing the returned json in a transient and then refreshing the transient every hour or so?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +2

      If you want to persist or keep a record of the data for manipulation later, having a custom table makes better decision. Transients expire after a set time.

    • @MysticOblong
      @MysticOblong 3 ปีที่แล้ว +2

      @@TechiePress Thanks for the reply. I think I was focusing a bit too much on the example which was the best seller API which is well suited for transients because it changes often. But your example of saving to a custom database table is the important thing. It is something I am thinking of doing myself so it was really good seeing your example.

  • @timfetter6846
    @timfetter6846 2 ปีที่แล้ว

    Thank you for sharing. I'd really like to see this converted to a block if you can find the time.

  • @martinkaspar5095
    @martinkaspar5095 2 ปีที่แล้ว

    Hello dear friends - Brilliant clip - thanks. your videos are a great resource:. Would you do some vids about the new Version 6.1 That would be awesome!

  • @olakunle5139
    @olakunle5139 2 ปีที่แล้ว

    My African Brother! Thank you O

  • @MdRabby-tg2fh
    @MdRabby-tg2fh ปีที่แล้ว

    Can you teach wordpress drag n drop features?

  • @theman7050
    @theman7050 3 ปีที่แล้ว

    This is a treasure!!

  • @yoonssam_kr
    @yoonssam_kr 2 ปีที่แล้ว

    Fantastic video!!! Learnt alot. Kudos to you!
    Is there any tutorial video of yours showing 'how to trigger the API over the button click' that I can refer to? I see from the videos, API is being triggered based on 'refreshing' the page.

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      In this video, you can learn about using the REST API + Ajax for Secure External API Data
      th-cam.com/video/mxUvSyvHrVs/w-d-xo.html. If you want to learn how to trigger buttons and Ajax responses in WordPress, I suggest this th-cam.com/video/eA8kTZV2PzE/w-d-xo.html

  • @J_Atsak
    @J_Atsak 3 ปีที่แล้ว +1

    Hi @Techipress,
    I've followed the same exact steps of around 8:21, adding the plugin into wordpress and thus making a menu page. however, I don't know why when i activate the plugin it doesn't seem to trigger the code to add a menu page.

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Do you have this code on a public site like pastebin or GitHub? We could be able to debug the issue

    • @J_Atsak
      @J_Atsak 3 ปีที่แล้ว +1

      @@TechiePress I’ve managed to find the solution, thank you for your response. Much appreciated.

  • @SunilSingh-yz3fo
    @SunilSingh-yz3fo 3 ปีที่แล้ว +1

    nice tutorial thanks
    How can we save api data in post_type ?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Use this video to pick the data saving APIs in WordPress th-cam.com/video/Fdgpf-K81nA/w-d-xo.html

  • @theman7050
    @theman7050 2 ปีที่แล้ว +1

    Around the 9 minutes mark, why did using 'echo' inside a plugin didnt give an error? I thought you can only return data inside a plugin. Why?

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว +1

      You can use either depending on where you are working. If the error needs to be seen on the front end, you need to echo it. If the result is being used in another function or location, it is best to return it.

    • @theman7050
      @theman7050 2 ปีที่แล้ว

      @@TechiePress thank u

  • @sebastiannieroda9022
    @sebastiannieroda9022 2 ปีที่แล้ว

    Hi , great tutorial , thanks . I have one question : how to determine the number of returned objects? I tried to add parameters like num_results or per_page but if doesn't work .

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      The parameters you need to use are those the API requires. I haven’t looked at the NY api in a while. Please check the docs and see the right restrictive parameter. In the books API, num_results needs an integer. developer.nytimes.com/docs/books-product/1/types/OverviewResponse

  • @rogerreyes4470
    @rogerreyes4470 3 ปีที่แล้ว

    Hi, your videos are great. A question. How could you do with wp request to send data with the POST method ... That does not require any function that involves wp_mail or contact form7, simply through a form send the data in wordpress send the data to an api ...

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      I hope I have understood you well. Check this out th-cam.com/video/MAVHIC9DMrs/w-d-xo.html

  • @raito4732
    @raito4732 2 ปีที่แล้ว

    Good tutorial! THX. Hi, I have a question. Now I am working with a website based on WordPress, and I want to make a dropdown box on the page. There are 10 options in the dropdown box like 10 cities. When I choose the option, it will make a 'get' request and with the city name or (lat,lng) to ba a parameter then we will get the response data. We want to display the different data on the same page when we change the options. Do you think is there some good method to that ? Do we have to use jQuery or Ajax? Sry, it is quite a long question. Hope to hear your suggestions thx :)

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      Hey. Thanks for the question. Ajax is the best option considering you don’t want a page reload. You can still use the same Script with Ajax to show some sort of loading element while the data fetches.

    • @raito4732
      @raito4732 2 ปีที่แล้ว

      @@TechiePress Thank you, it is really helpful!

  • @jeshuavega8270
    @jeshuavega8270 ปีที่แล้ว

    Hey! Greaaat content! Kudos!
    I got a question. In the Wpdb insert part. The script/code that you mentioned to avoid duplicated info or rows. How can I do it?

  • @TheHsystem
    @TheHsystem 3 ปีที่แล้ว

    Very well done video, I looked for something like this. I'm consuming articles from external api and save it into wp. Do you have some insights how to implement a search on the data saved?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      WP has a fair search system in built and that can be used. But you can also use searchWP a wonderful plugin.

    • @TheHsystem
      @TheHsystem 3 ปีที่แล้ว +1

      ​@@TechiePress Thank you for your answer. The search feature is for the frontend. I'm building an FAQ based on the data fetched from the external API, display them on a page and offer a search feature. All that is a custom code.

  • @tomdevisser8150
    @tomdevisser8150 3 ปีที่แล้ว +1

    Thank you!

  • @cipriant9190
    @cipriant9190 3 ปีที่แล้ว

    Thanks for the video. I was wondering, why did you save the data to a custom table instead of relying on WordPress' posts and meta data? Thanks!

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      I was just trying something new. But a good reason to use a custom table is If you have to store millions of entries. Having a custom table allows to you add your own indexes to the table, make searches easier and manipulation of the data.
      Custom potatoes might slow down your site if you have large data sets.

    • @cipriant9190
      @cipriant9190 3 ปีที่แล้ว

      @@TechiePress Thanks a lot. I got that information as well after some research. Thanks again.

  • @minecraftwordpress67
    @minecraftwordpress67 4 ปีที่แล้ว +1

    sir what is wordpress headless cms what we should be prepare for wordpress headless cms

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      I see you have landed on the headless CMS playlist. It is basiscally using WordPress as an interface to load your data and deliver it as an API data provider to another user interface.

  • @JenniferElliottWebsites
    @JenniferElliottWebsites 3 ปีที่แล้ว +1

    If I add a template to the twenty twenty theme, will it disappear when there is an update?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      Yes. You need to use what is called a child theme. It will be based off the twenty twenty theme but you can modify it without losing your changes even with new updates done.

  • @jeffsutton689
    @jeffsutton689 3 ปีที่แล้ว +1

    What VSCode extension do you have installed for WordPress?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      I documented this here th-cam.com/video/pMPjrCtbsFM/w-d-xo.html. Let me know which ones interested you the most.

  • @mulkproject687
    @mulkproject687 3 ปีที่แล้ว

    Boss quick question if data is updated every second meaning values are changing per second whats the best way to do it?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      You can use a cron job to do this or something action scheduler plugin

  • @theman7050
    @theman7050 3 ปีที่แล้ว

    Your channel is a GREAT resource for budding WP devs like myself. One question here though, say if I want to extract this data from API inside a normal page.php or functions.php file without creating a new plugin for it, how can i hide these normal and secret api keys from hackers?
    That define ABSPATH or die line at the beginning of my wordpress functions.php (or any other php file executing the API call) is sufficient?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      You would have to create an admin page and have these settings added to store in the Database. Or you can use dotenv files for this.

    • @theman7050
      @theman7050 3 ปีที่แล้ว

      @@TechiePress thank you very much. dotenv would mean using headless. Im not skilled in it yet. Using that admin page trick wouldnt show the key in url?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      You don’t need headless for dotenv files. Simple PHP load or composer would make it work.

    • @theman7050
      @theman7050 3 ปีที่แล้ว

      @@TechiePress oh wow. Thanks ill check it asap

  • @johnpaulpineda2476
    @johnpaulpineda2476 ปีที่แล้ว +1

    please make something like this again but with membership

  • @ojodomoabraham1698
    @ojodomoabraham1698 3 ปีที่แล้ว

    Hello Sir! Been following your videos for some times now . Can you make a video on how to integrate Vtpass Api on a wordpress plugin?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Hey Abraham, I haven’t use Vtpass before. What does it do? Where can I find it?

  • @JenniferElliottWebsites
    @JenniferElliottWebsites 3 ปีที่แล้ว

    Is it very secure to put the api url and the key in your plugin php folder?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      No. It is better to make an admin page and store the logins safely in the database as an option.

  • @johanstam3602
    @johanstam3602 4 ปีที่แล้ว

    which extension do you use for completing the WordPress functions in Visual Studio Code?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      I wrote a visual studio code extension - marketplace.visualstudio.com/items?itemName=laurencebahiirwa.classicpress-snippets. If you are interested in making one for yourself, this video I made to that effect can guide you. th-cam.com/video/RPBT01tg0DY/w-d-xo.html

  • @W_WISSYWISE
    @W_WISSYWISE 4 ปีที่แล้ว

    Hi, great video but unfortunately am not a developer, just beginning to learn.I have a WP e-commerce site and would like to integrate a third-party mobile credit sales system where users can pay bills and top-up the mobile credits. I need help to integrate this please.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Please email me at web @ mediauganda.com

  • @MuhammadAdnan2.0
    @MuhammadAdnan2.0 4 ปีที่แล้ว +1

    Bro also make video on how to develop mega menus to display post thumbnail and title + contents. ? Without using wp_nav_walker

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      The only way I know to do this is by using a plugin like Elementor. You can not tap into the WP menus and not rework them via the nav_walker to manipulate them.

  • @JenniferElliottWebsites
    @JenniferElliottWebsites 3 ปีที่แล้ว

    Is there a simple way to write the api inserts into the database if it is nested?
    foreach( $results as $result ) {
    $wpdb->insert(
    $table_name,
    array(
    //db columns api names
    // 'time' => current_time( 'mysql' ),
    'itemType' => $result->itemType,
    'title' => $result->title,
    [
    {
    "data": {
    "key": "111111",
    "version": 83738,
    "itemType": "book",
    "title": "L'attivismo rimosso: aspetti dell'educazione nuova tra Ottocento e Novecento",
    "creators": [
    {
    "creatorType": "author",
    "firstName": "Furio",
    "lastName": "Pesci"
    }
    ],
    "abstractNote": "",
    "series": "",
    "seriesNumber": "",

  • @MuhammadAdnan2.0
    @MuhammadAdnan2.0 4 ปีที่แล้ว +1

    & waiting for my one most requested video ....