:doc:`SNS <../../sns>` / Client / opt_in_phone_number

*******************
opt_in_phone_number
*******************



.. py:method:: SNS.Client.opt_in_phone_number(**kwargs)

  

  Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number.

   

  You can opt in a phone number only once every 30 days.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/OptInPhoneNumber>`_  


  **Request Syntax**
  ::

    response = client.opt_in_phone_number(
        phoneNumber='string'
    )
    
  :type phoneNumber: string
  :param phoneNumber: **[REQUIRED]** 

    The phone number to opt in. Use E.164 format.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The response for the OptInPhoneNumber action.

      
  
  **Exceptions**
  
  *   :py:class:`SNS.Client.exceptions.ThrottledException`

  
  *   :py:class:`SNS.Client.exceptions.InternalErrorException`

  
  *   :py:class:`SNS.Client.exceptions.AuthorizationErrorException`

  
  *   :py:class:`SNS.Client.exceptions.InvalidParameterException`

  