Explore more
Connections
Connect Make to any web service that uses OAuth2 authorization
6min
this article is currently in progress we are actively working to improve the writing style and visual elements, while making sure it reflects the most up to date information in this article, you will learn how to integrate the deviantart service, one of the largest networks for creative people our goal is to get a list of the latest deviations before configuring this scenario, you have to find out some basic information about the service firstly, go through the development section and find out what method deviantart uses for user authentication, and which api is appropriate to perform the desired function make supports the following authorization types oauth2 basic authorization api key getting ready deviantart uses a standardized oauth2 protocol for authorization you can see that in the authentication section create a so called client to be able to communicate with the api click register your application link to create a client a form opens up that allows you to create a new application fill in the name and description of the application and upload the icon in application settings section, fill out the oauth2 redirect uri whitelist field all services that use standard oauth2 protocol for authorization require this parameter the value of this parameter is always the same ‑ https //www integromat com/oauth/cb/oauth2 this is the url, that a user is redirected to after they authorize make to access the given service this way, make learns that the authorization has been successful, and creates a new connection with the service once you have completed the registration, a screen opens where you can view two important values client id and client secret write down these two values, you need them later on go back to the authentication section and get authorization url and access token url all services that use standard authorization oauth2 protocol always include both url addresses in their documentation go to the api section which describes all api calls in detail the api you need is in get /browse/newest expand the authentication and parameters sections to learn which scope is required to call this api and which parameters you can send along with the request creating a scenario before you start setting up your scenario in make, we recommend that you go through all apis that you plan to call and get a list of all scopes that are needed this way you can acquire all the necessary scopes at once and avoid the hassle of expanding the scopes in the future go to make and create a new scenario choose the oauth 2 0 http(s) request and response processing module from the http app and add it to your scenario in the open configuration window, click add a new window opens that allows you to add a new oauth2 connection in this step, enter the information that you have found in the documentation click create a connection a new window pops up click authorize app to authorize make to access the given service via the application you have created the access tokens exchange in the background automatically the configuration window automatically populates with the newly created connection set up the url address of the api endpoint according to the specifications given in the api documentation and specify optional parameters (in our case, we will enter https //www deviantart com/api/v1/oauth2/browse/newest ) when creating a scenario, we recommend working with a smaller number of bundles testing run your scenario if the execution results show that the call ended with a 200 status, the run completed successfully the response details contain complete json data that is available for further use copy the whole json response to the system clipboard you’ll need it in order to generate a data structure thanks to the data structures, make knows exactly what structure the received data has use json app > parse json module to parse your data in order to use the data in your scenario in the settings of parse json module, map the data variable from the http app to the json string field next to the data structure field, click add a panel opens select generator in the data structure generator, choose the json value as content type in the sample data field paste the json response from the server that you have copied to the system clipboard once you confirm your entries, the data structure generates automatically give a name to the data structure and click save click save to confirm the settings run the scenario once the scenario run completes, view details of the json module run if everything has been processed without errors, you will see a list of 5 new deviantart deviations you can then easily browse through the data structure and map obtained values to other modules