public CreateNotificationResponse createNotification ( CreateNotificationRequest request ) { checkNotNull ( request , "The parameter request should NOT be null." ) ; checkStringNotEmpty ( request . getName ( ) , "The parameter name should NOT be null or empty string." ) ; checkStringNotEmpty ( request . getEndpoint ( ) , "The parameter endpoint should NOT be null or empty string." ) ; InternalRequest internalRequest = createRequest ( HttpMethodName . POST , request , LIVE_NOTIFICATION ) ; return invokeHttpClient ( internalRequest , CreateNotificationResponse . class ) ; }
Create a live notification in the live stream service .