All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cat_2.9.3.0.1.1.source-code.searching.scala Maven / Gradle / Ivy

The newest version!
package hubcat

import dispatch._
import com.ning.http.client.RequestBuilder

trait Searching { self: Requests =>
  object Search {
    def issues(user: String, repo: String, open: Boolean, term: String) =
      complete(apiHost / "legacy" /  "issues" / user / repo / (if(open) "open" else "closed") / term)

    def repos(term: String) =
      complete(apiHost / "legacy" / "repos" / "search" / term)

    def user(term: String) =
      complete(apiHost / "legacy" / "user" / "search" / term)
  }

  def search = Search
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy