@pipedream/linkupapi 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkupapi-connect-to-profile",
6
6
  name: "Connect to Profile",
7
7
  description: "Send a connection request to a LinkedIn profile. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Network/connect)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  linkedinUrl: {
@@ -0,0 +1,61 @@
1
+ import linkupapi from "../../linkupapi.app.mjs";
2
+
3
+ export default {
4
+ key: "linkupapi-create-comment",
5
+ name: "Create Comment",
6
+ description: "Create a comment on a post. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/posts/comment)",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
14
+ props: {
15
+ linkupapi,
16
+ postUrl: {
17
+ type: "string",
18
+ label: "Post URL",
19
+ description: "LinkedIn post URL to comment on (must contain a valid activity URN)",
20
+ },
21
+ message: {
22
+ type: "string",
23
+ label: "Message",
24
+ description: "Text content of the comment to post",
25
+ },
26
+ loginToken: {
27
+ propDefinition: [
28
+ linkupapi,
29
+ "loginToken",
30
+ ],
31
+ },
32
+ country: {
33
+ propDefinition: [
34
+ linkupapi,
35
+ "country",
36
+ ],
37
+ },
38
+ companyUrl: {
39
+ propDefinition: [
40
+ linkupapi,
41
+ "companyUrl",
42
+ ],
43
+ },
44
+ },
45
+ async run({ $ }) {
46
+ const response = await this.linkupapi.createComment({
47
+ $,
48
+ data: {
49
+ post_url: this.postUrl,
50
+ message: this.message,
51
+ login_token: this.loginToken,
52
+ country: this.country,
53
+ company_url: this.companyUrl,
54
+ },
55
+ });
56
+
57
+ $.export("$summary", "Successfully created comment");
58
+
59
+ return response;
60
+ },
61
+ };
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkupapi-get-company-info",
6
6
  name: "Get Company Info",
7
7
  description: "Extract detailed information about a company from LinkedIn. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Companies/company-info)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  companyUrl: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "linkupapi-get-conversation-messages",
7
7
  name: "Get Conversation Messages",
8
8
  description: "Retrieve messages from a LinkedIn conversation. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Messages/conversation)",
9
- version: "0.0.1",
9
+ version: "0.0.2",
10
10
  props: {
11
11
  app,
12
12
  loginToken: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkupapi-get-invitations-status",
6
6
  name: "Get Invitations Status",
7
7
  description: "Check the status of connection invitations for a LinkedIn profile. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Network/get_invitations_status)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  linkedinUrl: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkupapi-get-profile-info",
6
6
  name: "Get Profile Info",
7
7
  description: "Extract information from a LinkedIn profile. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Profile/profile-info)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  linkedinUrl: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkupapi-login",
6
6
  name: "Login",
7
7
  description: "Authenticate with LinkedIn credentials. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/authentication/login)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  email: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "linkupapi-search-companies",
7
7
  name: "Search Companies",
8
8
  description: "Search for companies on LinkedIn based on criteria. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Companies/search)",
9
- version: "0.0.1",
9
+ version: "0.0.2",
10
10
  props: {
11
11
  app,
12
12
  loginToken: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "linkupapi-search-profiles",
7
7
  name: "Search Profiles",
8
8
  description: "Search for LinkedIn profiles based on criteria. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Profile/search)",
9
- version: "0.0.1",
9
+ version: "0.0.2",
10
10
  props: {
11
11
  app,
12
12
  loginToken: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkupapi-send-message",
6
6
  name: "Send Message",
7
7
  description: "Send a message to a LinkedIn profile. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/Messages/send)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  // eslint-disable-next-line pipedream/props-label, pipedream/props-description
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkupapi-verify-code",
6
6
  name: "Verify Code",
7
7
  description: "Verify security code for LinkedIn authentication. [See the documentation](https://docs.linkupapi.com/api-reference/linkup/authentication/verify)",
8
- version: "0.0.1",
8
+ version: "0.0.2",
9
9
  props: {
10
10
  app,
11
11
  email: {
package/linkupapi.app.mjs CHANGED
@@ -195,5 +195,11 @@ export default {
195
195
  ...opts,
196
196
  });
197
197
  },
198
+ createComment(opts = {}) {
199
+ return this.post({
200
+ path: "/posts/comment",
201
+ ...opts,
202
+ });
203
+ },
198
204
  },
199
205
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/linkupapi",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Pipedream LinkupAPI Components",
5
5
  "main": "linkupapi.app.mjs",
6
6
  "keywords": [