SHARE
TWEET

Untitled

a guest Jun 20th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. @Service
  3. @Configuration
  4. @EnableScheduling
  5. public class CoreService {
  6.     @Autowired
  7.     private GitHubService gitHubService;
  8.     @Autowired
  9.     private PipedriveService pipedriveService;
  10.  
  11.     private int i = 0;
  12.     private String userName;
  13.  
  14.     @PostConstruct
  15.     public void usernamePrompt () throws IOException {
  16.         Scanner myObj = new Scanner(System.in);
  17.         System.out.println("Enter a GitHub username to check for its public gists:");
  18.  
  19.         userName = myObj.nextLine();
  20.         System.out.println("Username: " + userName);
  21.  
  22.         List<Gist> userGists;
  23.         userGists = getGists(userName);
  24.  
  25.         for (int i = 0; i < userGists.size(); i++) {
  26.             System.out.println(userGists.get(i).getDescription());
  27.             System.out.println(userGists.get(i).getComments());
  28.             createDeal(userGists.get(i).getDescription(), userGists.get(i).getComments());
  29.         }
  30.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top