Update GD Custom Tables from API

This topic contains 5 replies, has 3 voices, and was last updated by  Dylan 8 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #53472

    Dylan
    Expired Member
    Post count: 40

    Hello,

    We have 4 custom fields contained in the wp_geodir_gd_ourcustomposttype_detail table, that we need to update from an external data source (on another server), via an external API that we have created.

    Is there a way to do this?

    I’m not that familiar with the WP REST API (http://v2.wp-api.org/), but I believe that it can only interface with standard WordPress tables (i.e. postmeta), and we could therefore not use it.
    Is that correct?

    If not, how do you recommend that we populate our 4 custom fields?

    Thanks.

    #53576

    Paolo
    Site Admin
    Post count: 31206

    Hi Dylan,

    we are not quite there yet. We are just starting to work on the REST API for the Apps.

    I’ll get Stiofan to asnwer your question though and see if he can give you any pointers.

    Thanks

    #53578

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Dylan,

    You could extend the WP API to do this, you you would need to add authentications etc, i’m not sure what your skill set is but it’s a bad idea to mess with this unless you know what you are doing, otherwise you could allow anyone access to be able to change your DB.

    Stiofan

    #53650

    Dylan
    Expired Member
    Post count: 40
    This reply has been marked as private.
    #53685

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #53774

    Dylan
    Expired Member
    Post count: 40
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket