<?php

require_once AF2_INTEGRATION_HANDLER_CLASS;
class Make_Integration extends Af2Integration {

    public function get_credential_fields() {
        update_option('af2_make_url', home_url( '/wp-json/af2/make/v1', 'https' ));
        return array( 
            array( 'key' => 'make_url', 'option_value' => 'af2_make_url', 'icon' => 'fas fa-link', 'label' => 'API URL:', 'type' => 'text', 'disabled' => true ),
            array( 'key' => 'make_pw', 'option_value' => 'af2_make_pw', 'icon' => 'fas fa-key', 'label' => 'API Password:', 'type' => 'password' ),
        );
    }
}
