Dagger
Search

linkedin

This module allows you to interacte with the LinkedIn API from a Dagger pipeline.

Installation

dagger install github.com/levlaz/daggerverse/linkedin@v0.1.0

Entrypoint

Return Type
Linkedin
Example
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
NameTypeDefault ValueDescription
tokenSecret !-LinkedIn 3-legged access token
textString !-Body of LinkedIn message
Example
dagger -m github.com/levlaz/daggerverse/linkedin@7f51f1eef157c8f123c372d864a71f2d7d178b38 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)
}