pipeline.
Installation
dagger install github.com/levlaz/daggerverse/linkedin@v0.2.0
Entrypoint
Return Type
Linkedin
Example
dagger -m github.com/levlaz/daggerverse/linkedin@9bbcd60663037c8b7c20897b060dc636a8abdb04 call \
func (m *myModule) example() *Linkedin {
return dag.
Linkedin()
}
@function
def example() -> dag.Linkedin:
return (
dag.linkedin()
)
@func()
example(): Linkedin {
return dag
.linkedin()
}
Types
Linkedin 🔗
post() 🔗
Post message to LinkedIn
Example usage: dagger call post –token env:LINKEDIN_TOKEN –text “hello”
More information on how to get started with the LinkedIn API can be found here: https://github.com/linkedin-developers/linkedin-api-js-client?tab=readme-ov-file#pre-requisites
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret ! | - | LinkedIn 3-legged access token |
text | String ! | - | Body of LinkedIn message |
Example
dagger -m github.com/levlaz/daggerverse/linkedin@9bbcd60663037c8b7c20897b060dc636a8abdb04 call \
post --token env:MYSECRET --text string
func (m *myModule) example(ctx context.Context, token *Secret, text string) string {
return dag.
Linkedin().
Post(ctx, token, text)
}
@function
async def example(token: dagger.Secret, text: str) -> str:
return await (
dag.linkedin()
.post(token, text)
)
@func()
async example(token: Secret, text: string): Promise<string> {
return dag
.linkedin()
.post(token, text)
}
debug() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
Example
dagger -m github.com/levlaz/daggerverse/linkedin@9bbcd60663037c8b7c20897b060dc636a8abdb04 call \
debug --source DIR_PATH
func (m *myModule) example(source *Directory) *Container {
return dag.
Linkedin().
Debug(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.linkedin()
.debug(source)
)
@func()
example(source: Directory): Container {
return dag
.linkedin()
.debug(source)
}