php - Pulling Products from an API

I am working with a client who sells products from a few different vendors. They want a separate page for each vendor an

I am working with a client who sells products from a few different vendors. They want a separate page for each vendor and want a list view and detail view of each product. Most of their clients send them a list of products and they will have to manually input the products into their system. Easy.

Now one of their clients is a much larger supplier and has an API where you can pull back all the product info through unique IDs. Technically my client could also just find these and load them manually but they have asked if it would be possible to load those automagically. Initially I thought I could just write some PHP or JS, connect to the API, loop through each unique ID, return the values, and then send them into my pages. However, is there a better/cleaner way? Maybe create a custom plugin that connects to the API and sends all the data into a CPT that way they are editable.

Has anyone ever done something like this that can shed any light on a good way to go about it?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745549062a4632477.html

相关推荐

  • php - Pulling Products from an API

    I am working with a client who sells products from a few different vendors. They want a separate page for each vendor an

    10小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信