Liking cljdoc? Tell your friends :D

kintone-client.url


domain-listclj/s

source

extract-app-urlclj/s

(extract-app-url url)
  (extract-app-url "https://hoge.cybozu.com")
=> nil

  (extract-app-url "https://hoge.cybozu.com/k/12")
=> "https://hoge.cybozu.com/k/12"

  (extract-app-url "https://foo.s.cybozu.com/k/guest/11/1")
=> "https://foo.s.cybozu.com/k/guest/11/1"

  (extract-app-url "https://hoge.hoge.com/k/11")
=> nil
  
sourceraw docstring

extract-base-urlclj/s

(extract-base-url url)
  (extract-base-url "https://hoge.cybozu.com")
=> "https://hoge.cybozu.com"
  (extract-base-url "https://hoge.cybozu.com/k/12")
=> "https://hoge.cybozu.com"

  (extract-base-url "https://foo.s.cybozu.com/k/guest/11/1")
=> "https://foo.s.cybozu.com"

  (extract-base-url "https://hoge.hoge.com/k/11")
=> nil
  
sourceraw docstring

parse-app-urlclj/s

(parse-app-url url)

(parse-app-url "https://hoge.cybozu.com") => nil

(parse-app-url "https://hoge.cybozu.com/k/12") => {:domain "cybozu.com", :subdomain "hoge", :app-id "12"}

(parse-app-url "https://foo.s.cybozu.com/k/guest/11/1") => {:domain "cybozu.com", :subdomain "foo", :guest-space-id "11", :app-id "1"}

(parse-app-url "https://hoge.hoge.com/k/11") => nil

  (parse-app-url "https://hoge.cybozu.com")
=> nil

  (parse-app-url "https://hoge.cybozu.com/k/12")
=> {:domain "cybozu.com", :subdomain "hoge", :app-id "12"}

  (parse-app-url "https://foo.s.cybozu.com/k/guest/11/1")
=> {:domain "cybozu.com", :subdomain "foo", :guest-space-id "11", :app-id "1"}

  (parse-app-url "https://hoge.hoge.com/k/11")
=> nil
  
sourceraw docstring

parse-base-urlclj/s

(parse-base-url url)

(parse-base-url "https://hoge.cybozu.com") => {:domain "cybozu.com", :subdomain "hoge"} (parse-base-url "https://hoge.cybozu.com/k/12") => {:domain "cybozu.com", :subdomain "hoge"}

(parse-base-url "https://foo.s.cybozu.com/k/guest/11/1") => {:domain "cybozu.com", :subdomain "foo"}

(parse-base-url "https://hoge.hoge.com/k/11") => nil

  (parse-base-url "https://hoge.cybozu.com")
=> {:domain "cybozu.com", :subdomain "hoge"}
  (parse-base-url "https://hoge.cybozu.com/k/12")
=> {:domain "cybozu.com", :subdomain "hoge"}

  (parse-base-url "https://foo.s.cybozu.com/k/guest/11/1")
=> {:domain "cybozu.com", :subdomain "foo"}

  (parse-base-url "https://hoge.hoge.com/k/11")
=> nil
  
sourceraw docstring

valid-app-url?clj/s

(valid-app-url? url)

(valid-app-url? "https://hoge.cybozu.com") => false

(valid-app-url? "https://hoge.cybozu.com/k/12") => true

(valid-app-url? "https://foo.s.cybozu.com/k/guest/11/1") => true

(valid-app-url? "https://hoge.hoge.com/k/11") => false

  (valid-app-url? "https://hoge.cybozu.com")
=> false

  (valid-app-url? "https://hoge.cybozu.com/k/12")
=> true

  (valid-app-url? "https://foo.s.cybozu.com/k/guest/11/1")
=> true

  (valid-app-url? "https://hoge.hoge.com/k/11")
=> false
  
sourceraw docstring

valid-base-url?clj/s

(valid-base-url? url)

(valid-base-url? "https://hoge.cybozu.com") => true (valid-base-url? "https://hoge.cybozu.com/k/12") => true

(valid-base-url? "https://foo.s.cybozu.com/k/guest/11/1") => true

(valid-base-url? "https://hoge.hoge.com/k/11") => false

  (valid-base-url? "https://hoge.cybozu.com")
=> true
  (valid-base-url? "https://hoge.cybozu.com/k/12")
=> true

  (valid-base-url? "https://foo.s.cybozu.com/k/guest/11/1")
=> true

  (valid-base-url? "https://hoge.hoge.com/k/11")
=> false
  
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close