Connectors of org.wso2.ballerina.connectors.medium package
connector ClientConnector (string accessToken, string clientId, string clientSecret, string refreshToken)
Medium client connector
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
accessToken | string | The access token of the Medium Application |
clientId | string | Client Id of the Medium Application |
clientSecret | string | Client Secret of the Medium Application |
refreshToken | string | The refresh token of the Medium Application |
action createProfilePost()
Create Post in authenticated User's profile
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
userId | string | ID of authenticated user |
payload | json | json payload containing the post |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action createPublicationPost()
Get List of Contributors for a Publication
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
publicationId | string | ID of relevant publication |
payload | json | json payload containing the post |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action getContributors()
Get List of Contributors for a Publication
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
publicationId | string | ID of relevant publication |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action getProfileInfo()
Get Profile Information
Parameters:
Parameter Name | Data Type | Description |
---|
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |
action getPublications()
Get List of Publications the user have contributed
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
userId | string | ID of authenticated user |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
message | response object |