@cloudos/gitee-api
v1.0.20
Published
Downloads
37
Readme
��<�d�i�v� �i�d�=�"�t�o�p�"�>�<�/�d�i�v�>�
�
�<�d�i�v� �a�l�i�g�n�=�"�c�e�n�t�e�r�"�>�
�
� � �<�h�3� �a�l�i�g�n�=�"�c�e�n�t�e�r�"�>�G�i�t�e�e� �A�P�I�<�/�h�3�>�
�
� � �<�p� �a�l�i�g�n�=�"�c�e�n�t�e�r�"�>�
�
� � � � �<�b�>�M�a�n�a�g�e� �y�o�u�r� �G�i�t�e�e� �a�c�c�o�u�n�t� �i�n� �j�a�v�a�s�c�r�i�p�t�.�<�/�b�>�
�
� � � � �<�!�-�-� �<�b�r�/�>� �-�-�>�
�
� � � � � � � �<�!�-�-� �<�a� �h�r�e�f�=�"�R�E�A�D�M�E�_�C�N�.�m�d�"�>�-N�e�ech<�/�a�>� �-�-�>�
�
�<�/�p�>�
�
�<�/�d�i�v�>�
�
�
�
�#�#� �A�b�o�u�t� �T�h�e� �P�r�o�j�e�c�t�
�
�T�h�i�s� �l�i�b�r�a�r�y� �p�r�o�v�i�d�e�s� �e�a�s�y�-�t�o�-�u�s�e� �j�a�v�a�s�c�r�i�p�t�/�t�y�p�e�s�c�r�i�p�t� �a�p�i�s� �t�o� �a�c�c�e�s�s� �g�i�t�e�e�.�c�o�m� �d�a�t�a� �l�i�k�e� �u�s�e�r� �i�n�f�o�,� �r�e�p�o�,� �b�r�a�n�c�h� �a�n�d� �f�i�l�e�s�;�
�
� � � � � � � � � � �
�
�#�#�#� �B�u�i�l�t� �W�i�t�h�
�
�� �t�y�p�e�s�c�r�i�p�t�
�
�� �a�x�i�o�s�
�
�
�
�#�#� �G�e�t�t�i�n�g� �S�t�a�r�t�e�d�
�
�1�.� �I�n�s�t�a�l�l� �t�h�i�s� �l�i�b�r�a�r�y� ��n�p�m� �i� �@�c�l�o�u�d�o�s�/�g�i�t�e�e�-�a�p�i�
� �o�r� ��y�a�r�n� �a�d�d� �@�c�l�o�u�d�o�s�/�g�i�t�e�e�-�a�p�i�
�.�
�
�2�.� �U�s�i�n�g� �t�h�e� �a�p�i�s� �i�n� �y�o�u�r� �c�o�d�e�;�
�
��
��j�s�
�
�i�m�p�o�r�t� �g�i�t�e�e�A�p�i� �f�r�o�m� �'�@�c�l�o�u�d�o�s�/�g�i�t�e�e�-�a�p�i�'�;�
�
�c�l�i�e�n�t�=�g�i�t�e�e�A�p�i�.�c�r�e�a�t�e�G�i�t�e�e�C�l�i�e�n�t�(�{�a�c�c�e�s�s�T�o�k�e�n�:�"�x�x�x�"�}�)�;�
�
�c�l�i�e�n�t�.�F�i�l�e�.�a�d�d�(�{�o�w�n�e�r�:�"�y�o�u�r�-�g�i�t�e�e�-�u�s�e�r�n�a�m�e�"�,�r�e�p�o�:�"�y�o�u�r�-�g�i�t�e�e�-�r�e�p�o�"�,�p�a�t�h�:�"�/�t�e�s�t�.�t�x�t�"�,�c�o�n�t�e�n�t�:�"�t�e�s�t� �m�e�s�s�a�g�e� �f�o�r� �g�i�t�e�e� �a�p�i�"�,�m�e�s�s�a�g�e�:�"�a�d�d� �f�i�l�e� �/�t�e�s�t�.�t�x�t�"�,� �b�r�a�n�c�h�:�"�m�a�s�t�e�r�"�}�)�.�t�h�e�n�(�(�)�=�>�{�
�
� � � � �c�o�n�s�o�l�e�.�l�o�g�(�"�S�u�c�c�e�s�s�.�"�)�;�
�
�}�)�;�
�
�
��
�
�
�#�#�#� �U�s�a�g�e�
�
�C�h�e�c�k� �t�h�e� �a�p�i�s� �d�e�f�i�n�e�d� �i�n� �t�h�e� �c�o�d�e� �(�[�s�r�c�/�i�n�d�e�x�.�t�s�]�(�s�r�c�/�i�n�d�e�x�.�t�s�)�)�,� �i�t�'�s� �n�o�t� �c�o�m�p�l�i�c�a�t�e�d�.�
�
�
�
�#�#� �L�i�c�e�n�s�e�
�
�M�I�T� �L�i�c�e�n�s�e�.�
�
�
�
�<�p� �a�l�i�g�n�=�"�r�i�g�h�t�"�>�(�<�a� �h�r�e�f�=�"�#�t�o�p�"�>�b�a�c�k� �t�o� �t�o�p�<�/�a�>�)�<�/�p�>�
�
�
�
�
�
�
�
�