Skip to content

CreateGist

[Source]

Creates a new gist. The files parameter is an array of (filename, content) pairs. Set is_public to true for a public gist.

primitive val CreateGist

Constructors

create

[Source]

new val create()
: CreateGist val^

Returns


Public Functions

apply

[Source]

fun box apply(
  files: Array[(String val , String val)] val,
  creds: Credentials val,
  description: (String val | None val) = reference,
  is_public: Bool val = false)
: Promise[(Gist val | RequestError val)] tag

Parameters

Returns


by_url

[Source]

fun box by_url(
  url: String val,
  files: Array[(String val , String val)] val,
  creds: Credentials val,
  description: (String val | None val) = reference,
  is_public: Bool val = false)
: Promise[(Gist val | RequestError val)] tag

Parameters

Returns


eq

[Source]

fun box eq(
  that: CreateGist val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: CreateGist val)
: Bool val

Parameters

Returns