Check out example codes for "web.whatsapp". It will help you in understanding the concepts better.

Code Example 1

if(!function_exists('ghumti_ocdi_import_files')){
                        /** adding ocdi compatibility */
                        function ghumti_ocdi_import_files() {
                            return array(
                                array(
                                    'import_file_name'             => 'Ghumti Demo',
                                    'import_file_url'            => 'https://raw.githubusercontent.com/aquariusthemes/theme-demos/master/ghumti/demo-content.xml',
                                    'import_widget_file_url'     => 'https://raw.githubusercontent.com/aquariusthemes/theme-demos/master/ghumti/widgets-data.wie',
                                    'import_customizer_file_url' => 'https://raw.githubusercontent.com/aquariusthemes/theme-demos/master/ghumti/customizer-settings.dat',
                                    'import_preview_image_url'     => get_template_directory_uri().'/screenshot.jpg',
                                    'import_notice'                => __( 'After you import this demo, you might have to setup the menu separately.', 'ghumti' ),
                                    'preview_url'                  => 'https://aquariusthemes.com/demo/ghumti/',
                                )
                            );
                        }
                    }
                    add_filter( 'pt-ocdi/import_files', 'ghumti_ocdi_import_files' );
                    
                    if(!function_exists('ghumti_ocdi_after_import')){
                        function ghumti_ocdi_after_import( $selected_import ) {
                        // Assign menus to their locations.
                            $main_menu = get_term_by( 'name', 'primary menu', 'nav_menu' );
                    
                            set_theme_mod( 'nav_menu_locations', array(
                                'ghumti_primary_menu' => $main_menu->term_id,
                                'ghumti_top_menu' => $main_menu->term_id,
                                'ghumti_footer_menu' => $main_menu->term_id
                            ));
                    
                        // Assign front page and posts page (blog page).
                            $front_page_id = get_page_by_title( 'Home' );
                    
                            update_option( 'show_on_front', 'page' );
                            update_option( 'page_on_front', $front_page_id->ID );
                        }
                    }
                    add_action( 'pt-ocdi/after_import', 'ghumti_ocdi_after_import' );

Code Example 2

web.whatsapp.com

Code Example 3

public class whatsapp{
	public static void main(String [] args){
		Desktop.getDesktop.browse(new URI("web.whatsapp.com"));
	}
}

Code Example 4

#If your database is in your local machineDATABASES = {   ‘default’: {      ‘ENGINE’: ‘djongo’,      ‘NAME’: ‘your-db-name’,   }}

Code Example 5

DATABASES = {   ‘default’: {      ‘ENGINE’ : ‘djongo’,             ‘NAME’ : ‘your-db-name’, #as named on server             'HOST' : 'mongodb://<dbuser>:<dbpassword>@ds259144.mlab.com:59144/<db-name>',#that is your connection link with your username,password and db name,here i created a db using mlabs of mongodb       'USER' : '<dbuser>',       'PASSWORD' : '<dbpassword>',   }}

Learn ReactJs, React Native from akashmittal.com