Exploring Usage of Web Resources Through a Model of API Learning