��#� �t�w�i�t�t�e�r��a�p�i�
�
�
�
�
�
�#�#� �I�n�t�r�o�d�u�c�t�i�o�n�
�
�
�
�T�h�i�s� �p�r�o�j�e�c�t� �d�e�m�o�n�s�t�r�a�t�e�s� �h�o�w� �t�o� �p�o�s�t� �a�n�d� �d�e�l�e�t�e� �o�n� �t�w�i�t�t�e�r� �u�s�i�n�g� �t�h�e� �G�o� �p�r�o�g�r�a�m�m�i�n�g� �l�a�n�g�u�a�g�e�.� �T�h�e� �p�r�o�g�r�a�m� �p�e�r�f�o�r�m�s� �t�w�o� �k�e�y� �t�a�s�k�s�:�
�
�
�
�1�.� ���P�o�s�t�i�n�g� �a� �n�e�w� �t�w�e�e�t��� �u�s�i�n�g� �t�h�e� �T�w�i�t�t�e�r� �A�P�I�.�
�
�2�.� ���D�e�l�e�t�i�n�g� �a�n� �e�x�i�s�t�i�n�g� �t�w�e�e�t��� �b�y� �p�r�o�v�i�d�i�n�g� �i�t�s� �T�w�e�e�t� �I�D�.�
�
�
�
�T�h�i�s� �p�r�o�j�e�c�t� �p�r�o�v�i�d�e�s� �h�a�n�d�s�-�o�n� �e�x�p�e�r�i�e�n�c�e� �w�i�t�h� �t�h�e� �f�o�l�l�o�w�i�n�g�:�
�
�-� �U�s�i�n�g� �O�A�u�t�h� �1�.�0�a� �f�o�r� �a�u�t�h�e�n�t�i�c�a�t�i�o�n� �w�i�t�h� �t�h�e� �T�w�i�t�t�e�r� �A�P�I�.�
�
�-� �M�a�k�i�n�g� �H�T�T�P� �P�O�S�T� �a�n�d� �D�E�L�E�T�E� �r�e�q�u�e�s�t�s� �t�o� �t�h�e� �T�w�i�t�t�e�r� �A�P�I�.�
�
�-� �H�a�n�d�l�i�n�g� �A�P�I� �r�e�s�p�o�n�s�e�s� �a�n�d� �e�r�r�o�r�s�.�
�
�
�
�#�#� �S�e�t�u�p� �I�n�s�t�r�u�c�t�i�o�n�s�
�
�
�
�#�#�#� �1�.� �S�e�t� �U�p� �a� �T�w�i�t�t�e�r� �D�e�v�e�l�o�p�e�r� �A�c�c�o�u�n�t�
�
�
�
�T�o� �i�n�t�e�r�a�c�t� �w�i�t�h� �t�h�e� �T�w�i�t�t�e�r� �A�P�I�,� �y�o�u� �n�e�e�d� �a� �T�w�i�t�t�e�r� �D�e�v�e�l�o�p�e�r� �a�c�c�o�u�n�t�.� �I�f� �y�o�u� �d�o�n�'�t� �h�a�v�e� �o�n�e� �y�e�t�,� �f�o�l�l�o�w� �t�h�e�s�e� �s�t�e�p�s�:�
�
�
�
�1�.� �V�i�s�i�t� �t�h�e� �[�T�w�i�t�t�e�r� �D�e�v�e�l�o�p�e�r� �P�l�a�t�f�o�r�m�]�(�h�t�t�p�s�:�/�/�d�e�v�e�l�o�p�e�r�.�t�w�i�t�t�e�r�.�c�o�m�/�)�.�
�
�2�.� �A�p�p�l�y� �f�o�r� �a� �d�e�v�e�l�o�p�e�r� �a�c�c�o�u�n�t�.� �T�h�i�s� �p�r�o�c�e�s�s� �u�s�u�a�l�l�y� �i�n�v�o�l�v�e�s� �f�i�l�l�i�n�g� �o�u�t� �s�o�m�e� �d�e�t�a�i�l�s� �a�b�o�u�t� �h�o�w� �y�o�u� �p�l�a�n� �t�o� �u�s�e� �t�h�e� �A�P�I�.�
�
�3�.� �O�n�c�e� �y�o�u�r� �a�c�c�o�u�n�t� �i�s� �a�p�p�r�o�v�e�d�,� �l�o�g� �i�n� �t�o� �t�h�e� �d�e�v�e�l�o�p�e�r� �p�l�a�t�f�o�r�m�.�
�
�
�
�#�#�#� �2�.� �C�r�e�a�t�e� �a� �N�e�w� �P�r�o�j�e�c�t� �a�n�d� �A�p�p�
�
�
�
�1�.� �N�a�v�i�g�a�t�e� �t�o� ���P�r�o�j�e�c�t�s� �&� �A�p�p�s��� ��! ���O�v�e�r�v�i�e�w���.�
�
�2�.� �C�r�e�a�t�e� �a� �n�e�w� �p�r�o�j�e�c�t� �a�n�d� �n�a�m�e� �i�t�.�
�
�3�.� �C�r�e�a�t�e� �a�n� �a�p�p� �w�i�t�h�i�n� �t�h�e� �p�r�o�j�e�c�t�.�
�
�
�
�#�#�#� �3�.� �G�e�n�e�r�a�t�e� �A�P�I� �K�e�y�s� �a�n�d� �T�o�k�e�n�s�
�
�
�
�1�.� �A�f�t�e�r� �c�r�e�a�t�i�n�g� �y�o�u�r� �a�p�p�,� �n�a�v�i�g�a�t�e� �t�o� ���K�e�y�s� �a�n�d� �T�o�k�e�n�s���.�
�
�2�.� �G�e�n�e�r�a�t�e� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�r�e�d�e�n�t�i�a�l�s�:�
�
� � � �-� ���A�P�I� �K�e�y���
�
� � � �-� ���A�P�I� �S�e�c�r�e�t� �K�e�y���
�
� � � �-� ���A�c�c�e�s�s� �T�o�k�e�n���
�
� � � �-� ���A�c�c�e�s�s� �T�o�k�e�n� �S�e�c�r�e�t���
�
�
�
�3�.� �S�a�v�e� �t�h�e�s�e� �c�r�e�d�e�n�t�i�a�l�s�.� �Y�o�u�'�l�l� �n�e�e�d� �t�h�e�m� �t�o� �a�u�t�h�e�n�t�i�c�a�t�e� �r�e�q�u�e�s�t�s�.�
�
�
�
�#�#�#� �4�.� �S�e�t� �E�n�v�i�r�o�n�m�e�n�t� �V�a�r�i�a�b�l�e�s�
�
�
�
�F�o�r� �s�e�c�u�r�i�t�y� �r�e�a�s�o�n�s�,� �i�t�'�s� �b�e�s�t� �n�o�t� �t�o� �h�a�r�d�c�o�d�e� �y�o�u�r� �A�P�I� �c�r�e�d�e�n�t�i�a�l�s�.� �I�n�s�t�e�a�d�,� �s�t�o�r�e� �t�h�e�m� �i�n� �e�n�v�i�r�o�n�m�e�n�t� �v�a�r�i�a�b�l�e�s�.� �I�n� �y�o�u�r� �t�e�r�m�i�n�a�l�,� �r�u�n� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�o�m�m�a�n�d�s�:�
�
�
�
��
��p�o�w�e�r�s�h�e�l�l� � �$�e�n�v�:�T�W�I�T�T�E�R�_�A�P�I�_�K�E�Y�=�'�y�o�u�r�_�a�p�i�_�k�e�y�'� � �$�e�n�v�:�T�W�I�T�T�E�R�_�A�P�I�_�S�E�C�R�E�T�_�K�E�Y�=�'�y�o�u�r�_�a�p�i�_�s�e�c�r�e�t�_�k�e�y�'� � �$�e�n�v�:�T�W�I�T�T�E�R�_�A�C�C�E�S�S�_�T�O�K�E�N�=�'�y�o�u�r�_�a�c�c�e�s�s�_�t�o�k�e�n�'� � �$�e�n�v�:�T�W�I�T�T�E�R�_�A�C�C�E�S�S�_�T�O�K�E�N�_�S�E�C�R�E�T�=�'�y�o�u�r�_�a�c�c�e�s�s�_�t�o�k�e�n�_�s�e�c�r�e�t�'� � � � �
��
�
�
�
�
�
�
�#�#�#� �P�o�s�t�i�n�g� �a� �N�e�w� �T�w�e�e�t�
�
�
�
�T�h�e� �c�o�d�e� �p�o�s�t�s� �a� �n�e�w� �t�w�e�e�t� �u�s�i�n�g� �t�h�e� �T�w�i�t�t�e�r� �A�P�I�'�s� ��P�O�S�T� �/�2�/�t�w�e�e�t�s�
� �e�n�d�p�o�i�n�t�.� �T�o� �a�v�o�i�d� �i�s�s�u�e�s� �w�i�t�h� �d�u�p�l�i�c�a�t�e� �t�w�e�e�t�s�,� �t�h�e� �p�r�o�g�r�a�m� �a�p�p�e�n�d�s� �a� �t�i�m�e�s�t�a�m�p� �t�o� �t�h�e� �t�w�e�e�t� �m�e�s�s�a�g�e�,� �e�n�s�u�r�i�n�g� �e�a�c�h� �t�w�e�e�t� �i�s� �u�n�i�q�u�e�.�
�
�
�
�#�#�#�#� �E�x�a�m�p�l�e� �A�P�I� �R�e�q�u�e�s�t� �(�T�w�e�e�t� �P�o�s�t�)�
�
�
�
��
��j�s�o�n� � �P�O�S�T� �h�t�t�p�s�:�/�/�a�p�i�.�t�w�i�t�t�e�r�.�c�o�m�/�2�/�t�w�e�e�t�s� � �A�u�t�h�o�r�i�z�a�t�i�o�n�:� �O�A�u�t�h� �1�.�0�a� �U�s�e�r� �C�o�n�t�e�x�t� � �C�o�n�t�e�n�t�-�T�y�p�e�:� �a�p�p�l�i�c�a�t�i�o�n�/�j�s�o�n� � �
��
�
�
�
�
�{�
�
� � �"�t�e�x�t�"�:� �"�H�e�l�l�o� �f�r�o�m� �T�w�i�t�t�e�r� �A�P�I�!� �2�0�2�4�-�1�0�-�1�0� �1�2�:�3�0�:�4�5�"�
�
�}�
�
��
�� � � � �E�x�e�c�u�t�e� �t�h�e� �b�e�l�o�w� �c�o�m�m�a�n�d� �t�o� �r�u�n� �m�a�i�n�.�g�o� � � � � �
��
�p�o�w�e�r�s�h�e�l�l�
�
�g�o� �r�u�n� �m�a�i�n�.�g�o�
�
��
�� � �T�o� �d�e�l�e�t�e� �t�h�e� �t�w�e�e�t� �r�u�n� �b�e�l�o�w� �c�o�m�m�a�n�d� �b�y� �p�a�s�s�i�n�g� �t�w�e�e�t� �i�d� �u�s�i�n�g� �-�d�e�l�e�t�e� �f�l�a�g� � �
��
�p�o�w�e�r�s�h�e�l�l�
�
�g�o� �r�u�n� �m�a�i�n�.�g�o� �-�d�e�l�e�t�e� �-�t�w�e�e�t�I�D� �<�y�o�u�r��t�w�e�e�t��i�d�>�
�
��
�� � � � �C�o�n�s�o�l�e� �O�u�t�p�u�t�:� � �
��
�p�o�w�e�r�s�h�e�l�l�
�
�P�S� �C�:�\�U�s�e�r�s�\�k�r�i�s�h�\�O�n�e�D�r�i�v�e�\�D�o�c�u�m�e�n�t�s�\�C�o�d�e�\�g�o�\�s�r�c�\�g�i�t�h�u�b�.�c�o�m�\�K�r�i�s�h�n�a�8�6�8�6�0�1�\�t�w�i�t�t�e�r��a�p�i�>� �g�o� �r�u�n� �m�a�i�n�.�g�o�
�
�T�w�e�e�t� �p�o�s�t�e�d� �s�u�c�c�e�s�s�f�u�l�l�y�!� �T�w�e�e�t� �I�D�:� �1�8�4�4�4�4�1�0�1�5�4�5�0�4�8�1�0�5�8�
�
�P�S� �C�:�\�U�s�e�r�s�\�k�r�i�s�h�\�O�n�e�D�r�i�v�e�\�D�o�c�u�m�e�n�t�s�\�C�o�d�e�\�g�o�\�s�r�c�\�g�i�t�h�u�b�.�c�o�m�\�K�r�i�s�h�n�a�8�6�8�6�0�1�\�t�w�i�t�t�e�r��a�p�i�>� �g�o� �r�u�n� �m�a�i�n�.�g�o�
�
�T�w�e�e�t� �p�o�s�t�e�d� �s�u�c�c�e�s�s�f�u�l�l�y�!� �T�w�e�e�t� �I�D�:� �1�8�4�4�4�4�1�2�8�9�6�1�9�6�1�9�9�4�4�
�
�P�S� �C�:�\�U�s�e�r�s�\�k�r�i�s�h�\�O�n�e�D�r�i�v�e�\�D�o�c�u�m�e�n�t�s�\�C�o�d�e�\�g�o�\�s�r�c�\�g�i�t�h�u�b�.�c�o�m�\�K�r�i�s�h�n�a�8�6�8�6�0�1�\�t�w�i�t�t�e�r��a�p�i�>� �g�o� �r�u�n� �m�a�i�n�.�g�o�
�
�T�w�e�e�t� �p�o�s�t�e�d� �s�u�c�c�e�s�s�f�u�l�l�y�!� �T�w�e�e�t� �I�D�:� �1�8�4�4�4�4�1�3�0�9�8�7�3�8�6�0�9�7�8�
�
�P�S� �C�:�\�U�s�e�r�s�\�k�r�i�s�h�\�O�n�e�D�r�i�v�e�\�D�o�c�u�m�e�n�t�s�\�C�o�d�e�\�g�o�\�s�r�c�\�g�i�t�h�u�b�.�c�o�m�\�K�r�i�s�h�n�a�8�6�8�6�0�1�\�t�w�i�t�t�e�r��a�p�i�>� �g�o� �r�u�n� �m�a�i�n�.�g�o� �-�d�e�l�e�t�e� �-�t�w�e�e�t�I�D� �1�8�4�4�4�4�1�0�1�5�4�5�0�4�8�1�0�5�8�
�
�E�r�r�o�r� �w�h�i�l�e� �d�e�l�e�t�i�n�g� �t�w�e�e�t�:� �2�0�0� �O�K� �m�a�p�[�d�a�t�a�:�m�a�p�[�d�e�l�e�t�e�d�:�t�r�u�e�]�]�
�
�P�S� �C�:�\�U�s�e�r�s�\�k�r�i�s�h�\�O�n�e�D�r�i�v�e�\�D�o�c�u�m�e�n�t�s�\�C�o�d�e�\�g�o�\�s�r�c�\�g�i�t�h�u�b�.�c�o�m�\�K�r�i�s�h�n�a�8�6�8�6�0�1�\�t�w�i�t�t�e�r��a�p�i�>� �g�o� �r�u�n� �m�a�i�n�.�g�o�
�
�T�w�e�e�t� �p�o�s�t�e�d� �s�u�c�c�e�s�s�f�u�l�l�y�!� �T�w�e�e�t� �I�D�:� �1�8�4�4�4�4�2�3�7�9�1�4�8�7�9�2�3�1�9�
�
�P�S� �C�:�\�U�s�e�r�s�\�k�r�i�s�h�\�O�n�e�D�r�i�v�e�\�D�o�c�u�m�e�n�t�s�\�C�o�d�e�\�g�o�\�s�r�c�\�g�i�t�h�u�b�.�c�o�m�\�K�r�i�s�h�n�a�8�6�8�6�0�1�\�t�w�i�t�t�e�r��a�p�i�>� �g�o� �r�u�n� �m�a�i�n�.�g�o�
�
�T�w�e�e�t� �p�o�s�t�e�d� �s�u�c�c�e�s�s�f�u�l�l�y�!� �T�w�e�e�t� �I�D�:� �1�8�4�4�4�4�2�4�0�3�7�5�6�7�5�3�3�1�6�
�
�P�S� �C�:�\�U�s�e�r�s�\�k�r�i�s�h�\�O�n�e�D�r�i�v�e�\�D�o�c�u�m�e�n�t�s�\�C�o�d�e�\�g�o�\�s�r�c�\�g�i�t�h�u�b�.�c�o�m�\�K�r�i�s�h�n�a�8�6�8�6�0�1�\�t�w�i�t�t�e�r��a�p�i�>� �g�o� �r�u�n� �m�a�i�n�.�g�o� �-�d�e�l�e�t�e� �-�t�w�e�e�t�I�D� �1�8�4�4�4�4�2�3�7�9�1�4�8�7�9�2�3�1�9�
�
�T�w�e�e�t� �d�e�l�e�t�e�d� �s�u�c�c�e�s�s�f�u�l�l�y�!�
�
��
�`�
�
�
�
�#�#�#� �E�r�r�o�r� �H�a�n�d�l�i�n�g�
�
�
�
�
�
�I�f� �t�h�e� �u�s�e�r� �a�t�t�e�m�p�t�s� �t�o� �p�o�s�t� �t�h�e� �s�a�m�e� �t�w�e�e�t� �c�o�n�t�e�n�t� �m�u�l�t�i�p�l�e� �t�i�m�e�s�,� �t�h�e� �T�w�i�t�t�e�r� �A�P�I� �w�i�l�l� �r�e�j�e�c�t� �t�h�e� �r�e�q�u�e�s�t� �w�i�t�h� �a� �4�0�3� �F�o�r�b�i�d�d�e�n� �e�r�r�o�r�.� �T�o� �r�e�s�o�l�v�e� �t�h�i�s�,� �t�h�e� �p�r�o�g�r�a�m� �e�n�s�u�r�e�s� �t�h�e� �t�w�e�e�t� �m�e�s�s�a�g�e� �i�n�c�l�u�d�e�s� �a� �t�i�m�e�s�t�a�m�p� �t�o� �g�e�n�e�r�a�t�e� �u�n�i�q�u�e� �c�o�n�t�e�n�t�.�
�
�
�
�
�
�
�
�