• Resolved huckfitler

    (@huckfitler)


    Hey ??

    I am trying to POST the JSON bellow to the Event API in order to create a new event. Its Sportspress Soccer. The event is created but there are no Results (Goals) in the event.
    Do i send a wrong formatted result value?

    $json = ‘{“slug”: “bluebirds-vs-eagles111”,
    “status”: “publish”,
    “type”: “sp_event”,
    “link”: “https://****/soccer/event/bluebirds-vs-eagles/”,
    “title”: “TEST”,
    “content”: “Test Content”,
    “excerpt”:”Text Excerpt”,
    “leagues”: [
    20
    ],
    “seasons”: [
    23
    ],
    “venues”: [
    25
    ],
    “teams”: [
    33,
    34
    ],

    “results”:{

    “33”:{
    “first”:”10″,
    “second”:”0″,
    “total”:”10″,
    “outcome”:”10″
    },
    “34”:{
    “first”:”6″,
    “second”:”0″,
    “total”:”10″,
    “outcome”:”10″
    },

    “0”: {
    “goals”: “Goals”
    }
    },

    “main_results”: [
    “10”,
    “10”
    ],
    “day”: “”,
    “minutes”: “90”,
    “players”: [
    0,
    36,
    37,
    0,
    40,
    41
    ],

    “author”: 1,
    “featured_media”: 0
    }’

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there!

    Thanks for your reply.

    Usually, we can’t help with custom coding (including API usage).

    But let me tag our dev team on this one.

    @savvasha, do you have any ideas?

    Thanks!

    @huckfitler did you manage to resolve this? I am having the same issue. I can update everything but results or main_results. No error, just nothing happens

    @rochesterj any updates from the dev team?

    Thread Starter huckfitler

    (@huckfitler)

    Hi @maxze !

    Sadly nope ??
    Also waitong for the dev team answer

    Thread Starter huckfitler

    (@huckfitler)

    I’ll write an SQL Query to store the results direct in the Database. I’ll post it here soon

    Hi there!

    Unfortunately, we got no reply so far.

    One thing that strikes me as odd in that event call is this:
    “outcome”:”10″

    Is it correct?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘POST Event with Results not working’ is closed to new replies.