Building your first Sell app - Part 4: Getting data

Have more questions? Submit a request

2 Comments

  • Kaela
    Comment actions Permalink

    Hi Darren Chan - Thanks for the step by step tutorial. One question I have is around how best to connect to the Sell API from a Sell custom app. This example shows connecting an available Help Center API that requires no auth. As the Sell API requires OAuth authentication, do you have an example of how you would recommend making that connection? Would it be similar to connecting to external OAuth systems (like Salesforce) or are there helpers since the app is executing inside Sell?

    0
  • Jacob Spies
    Comment actions Permalink

    Hi Kaela!

    You can now do Sell API requests without OAuth authentication (as-of Dec 2020).

    We are currently working on updating our articles to reflect this, but you can still use these articles as a guide.
    Your request should look something like this:

    zafClient.request({
    url: '/v2/deals',
    type: 'POST',
    contentType: 'application/json',
    data: JSON.stringify({
    "data": {
    "name": "Website Redesign",
    "contact_id": 1,
    }
    })
    })

    Please feel free top reach out top us again in the future!

    Thank you,

    Jacob Spies

    Technical Support Engineer

    Call us at +1 888 670 4887, Mon-Fri, 8am-5pm, Pacific Time

    0

Please sign in to leave a comment.

Powered by Zendesk