skip to Main Content

Ninja Popup Rest API Plugin Documentation

Here are the key features of Ninja Popup Rest API Plugin

  • Get All Popups
  • Get Single Popup
  • Create Popup
  • Update Popup
  • Get json schema for created popups

 

Get All Popups Rest API URL: http://siteurl/wp-json/wp/v2/wpo_np

 

Get Single Popup Rest API URL: http://siteurl/wp-json/wp/v2/wpo_np/popup_id

 

Create Popup Rest API URL: http://siteurl/wp-json/wp/v2/wpo_np

{
    "title": "Popup title Updated",
    "popup_data": {
        "snp_theme": {
            "mode": "0",
            "theme": "newtheme3",
            "color": "multicolors",
            "type": "optin"
        },
        "snp_width": "660",
        "snp_bg_color1": "#222222",
        "snp_bg_color2": "#FB0007",
        "snp_header": "Newsletter subscription ",
        "snp_header_font": {
            "size": "24",
            "color": "#ffffff"
        },
        "snp_img": "https://wpintegrate.com/wp-content/uploads/2016/05/newsletter_full_img.png",
        "snp_subheader": "sub header ",
        "snp_subheader_font": {
            "size": "18",
            "color": "#ffffff"
        },
        "snp_maintext": "Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum. ",
        "snp_maintext_font": {
            "size": "12",
            "color": "#ffffff"
        },
        "snp_name_placeholder": "Your Name...",
        "snp_name_disable": "0",
        "snp_email_placeholder": "Your Email...",
        "snp_cf": [
            {
                "type": "email"
            },
            {
                "type": "name"
            },
            {
                "label": "Phone",
                "placeholder": "Phone",
                "name": "field201",
                "type": "Text",
                "options": [
                    ""
                ],
                "required": "No"
            },
            {
                "label": "Gender",
                "placeholder": "Gender",
                "name": "field560",
                "type": "DropDown",
                "options": [
                    "Male",
                    "Female"
                ],
                "required": "Yes"
            }
        ],
        "snp_submit_button": "Subscribe Now!",
        "snp_submit_button_loading": "please wait......",
        "snp_submit_button_success": "Thank you .......",
        "snp_submit_button_border_color": "#ffffff",
        "snp_submit_button_text_color": "#ffffff",
        "snp_submit_button_hover_color": "#222222",
        "snp_submit_button_hover_text_color": "#ffffff",
        "snp_security_note": "nothing ",
        "snp_popup_overlay": "default",
        "snp_overlay_bld": "enabled",
        "snp_overlay_bld_color": "#5A5757",
        "snp_overlay_bld_opacity": "0.8",
        "snp_overlay_bld_close": "yes",
        "snp_overlay_bld_link_blank": "yes",
        "snp_start_date": "2018-09-03",
        "snp_end_date": "2018-09-12",
        "snp_start_hour": "01:10",
        "snp_end_hour": "23:23",
        "snp_form_action": "post",
        "snp_optin_form_submit": "single",
        "snp_material": "no",
        "snp_open": "load",
        "snp_open_after": "2",
        "snp_open_scroll": "10",
        "snp_close": "manual",
        "snp_close_scroll": "0",
        "snp_show_on_exit": "2",
        "snp_exit_scroll_down": "10",
        "snp_exit_scroll_up": "10",
        "snp_show_cb_button": "yes",
        "snp_cb_text": "Close this popup",
        "snp_cb_img": "close_default",
        "snp_cookie_conversion": "30",
        "snp_cookie_close": "0",
        "snp_optin_redirect": "no",
        "snp_show_like_button": "yes",
        "snp_show_tweet_button": "yes",
        "snp_show_follow_button": "no",
        "snp_show_gp_button": "yes",
        "snp_show_li_button": "yes",
        "snp_show_pi_button": "yes",
        "snp_show_by_referer": "no",
        "snp_show_by_referer_urls": [
            ""
        ],
        "snp_hide_by_referer": "no",
        "snp_hide_by_referer_urls": [
            ""
        ],
        "snp_ml_send_by_email": "0",
        "snp_builder": {
            "1": {
                "args": {
                    "type": "step",
                    "width": "500",
                    "height": "500",
                    "position": "snp-bld-center",
                    "margin-top": "",
                    "margin-right": "",
                    "margin-bottom": "",
                    "margin-left": "",
                    "border-style": "",
                    "border-width": "",
                    "border-radius": "",
                    "border-color": "",
                    "animation": "",
                    "animation-close": "",
                    "background-color": "",
                    "background-image": "",
                    "background-video": "",
                    "background-repeat": "repeat",
                    "background-position": "center center",
                    "remove_form": "0",
                    "opacity": "",
                    "z-index": "",
                    "css-class": "",
                    "custom-css": ""
                }
            }
        },
        "snp_bld_cf": []
    }
}



Back To Top