Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9

以下内容为反编译后的 e.java 源代码,内容仅作参考


package myobfuscated.y81;

import com.picsart.pinterest.api.PinterestAuthService;
import java.io.IOException;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.o31.a;
import org.jetbrains.annotations.NotNull;
import retrofit2.Response;
public final class e implements d {
    @NotNull
    public final PinterestAuthService a;
    @NotNull
    public final a b;

    public e(@NotNull PinterestAuthService authApiService, @NotNull a authDataProvider) {
        Intrinsics.checkNotNullParameter(authApiService, "authApiService");
        Intrinsics.checkNotNullParameter(authDataProvider, "authDataProvider");
        this.a = authApiService;
        this.b = authDataProvider;
    }

    @Override
    @NotNull
    public final myobfuscated.o31.a<String> a() {
        myobfuscated.ot.e w;
        myobfuscated.ot.e w2;
        a aVar = this.b;
        try {
            PinterestAuthService pinterestAuthService = this.a;
            String h = aVar.h();
            aVar.a();
            Response<myobfuscated.ot.g> execute = pinterestAuthService.requestAccessToken(h, "https://api.picsart.com/hooks/pinterest_oauth").execute();
            myobfuscated.ot.g body = execute.body();
            String q = (body == null || (w = body.w("data")) == null || (w2 = w.l().w("access_token")) == null) ? null : w2.q();
            if (execute.isSuccessful() && q != null && !myobfuscated.mn2.k.o(q)) {
                return new a.b(q);
            }
            return new a.C1354a(new IllegalStateException("Failed to get access token"));
        } catch (IOException e) {
            return new a.C1354a(e);
        }
    }
}