Loading tutorials
callout: prefix resolves at runtime and which setup errors to expect. It assumes you can read basic Apex and know what an HTTP request and status code are. It also assumes6 min readHttpRequest that you set on almost every callout: the method, the headers, the body and the timeout. It assumes you know basic Apex syntax and exceptions, HTTP methods, status codes and headers, and basic JSON. It also assumes you can create a Named Credent7 min readHttp.send(): the status code, the headers, and the body. It assumes you can already build and send a request, and that you know HTTP status codes, basic JSON, and Apex exceptions. Parsing JSON into typed classes and the full error-handling strategy get thei5 min readHttp, HttpRequest and HttpResponse. It also assumes you can read a status code and a response body, and that you know basic Apex classes, collections and exceptions. Here we focus on the body: how to turn Apex data into JSON, a5 min readHttp, HttpRequest and HttpResponse. It also assumes you know HTTP status code families and Apex exception handling. Here you will learn how a callout can fail, how to tell the failures apart, and how to turn them into predictable behavior5 min readHttp, HttpRequest and HttpResponse. It also assumes you know the governor limits model (per-transaction ceilings enforce6 min readHttp, use a Named Credential, and read the callout limits and the uncommitted work rule from the earlier chapters. It covers moving a callout out of the user's transaction with Queueable Apex or @future(callout=true). It also covers how to6 min read@isTest, System.assertEquals, Test.startTest and Test.stopTest). It also assumes you have read the earlier chapters on building requests, reading responses and handling errors. The examples reuse TodoService, TodoClient and `TodoSyncJ4 min readHttp, HttpRequest and HttpResponse, and that you know the callout limits from earlier in the tutorial. It covers the one tool in this tutorial that is built for slow external services: the Continuation class.5 min read