appKeyInterceptor property

Interceptor appKeyInterceptor
getter/setter pair

DIO interceptor for App-key based API (Link, Local, Search, etc).

Implementation

static Interceptor appKeyInterceptor = InterceptorsWrapper(onRequest:
    (RequestOptions options, RequestInterceptorHandler handler) async {
  var appKey = KakaoContext.clientId;
  options.headers["Authorization"] = "KakaoAK $appKey";
  handler.next(options);
});