First Steps with API and Postman

This topic contains 4 replies, has 3 voices, and was last updated by  Kiran 4 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #520525

    Gerrit
    Free User
    Post count: 2

    Hello,
    i am using Postman and i am bloddy new to API and Programming.
    I have generated the API Keys and now – i would like to know
    what i have to fill for accessing to the reviews.
    What Kind of authorization Type:?

    I tried several – but not shure where to put the credentials.

    Post http://paxasd.inkddss.digital/wp-json/geodir/v2/review

    BasicAuth?

    #520526

    Gerrit
    Free User
    Post count: 2

    OAuth 1.0 seems to work. But how can i add an 1 to 5 Star review to an existing place? Via Postman?

    #520527

    Gerrit
    Free User
    Post count: 2

    I get

    {
    “code”: “rest_no_route”,
    “message”: “Es wurde keine Route gefunden, die mit der URL und der Request-Methode identisch ist.”,
    “data”: {
    “status”: 404
    }

    back

    #520537

    Alex Rollin
    Moderator
    Post count: 27815

    Can you share your example?

    #520752

    Kiran
    Moderator
    Post count: 7069

    Hi Gerrit,

    To submit reviews via REST API use following endpoints.

    1) Using basic data:

    ?post=801&content=This is comment via API&rating=5

    2) Using advance data:

    ?author=1&author_email=thisismyemailaddress@gmail.com&author_ip=127.0.0.1&author_name=Test User&author_url=https://www.google.co.in&status=1&post=801&content=This is comment via API&rating=5

    Regards,
    Kiran

Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket