Exemplo n.º 1
0
#!/usr/bin/env python3.4

from rc.clients import APIClient
import sys

if __name__ == '__main__':
  # If the base variables RC_PUBLIC_KEY and RC_PRIVATE_KEY 
  # are not set you need to pass the public and private key
  # values into this constructor
  client = APIClient()

  username = input("Username: "******"Invalid username")
  else:
    user = users[0]
    
    user_id = user['id']
    projects = client.projects(leaders=user_id)

    for project in projects:
      print(project['name'])
Exemplo n.º 2
0
 def test_users(self):
   client = APIClient()
   self.assertGreaterEqual(len(client.users()), 1)