public class HubspotHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PAGE_SIZE
Number of objects in one page to pull.
|
| Constructor and Description |
|---|
HubspotHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEndpoint(SourceHubspotConfig sourceHubspotConfig)
Reurns the complete url as string.
|
HubspotPage |
getHubspotPage(SourceHubspotConfig sourceHubspotConfig,
String offset)
Return the instance of HubspotPage.
|
static io.cdap.cdap.api.data.format.StructuredRecord |
transform(String value,
SourceHubspotConfig config)
Returns the StructuredRecord.
|
public static final String PAGE_SIZE
public HubspotPage getHubspotPage(SourceHubspotConfig sourceHubspotConfig, String offset) throws IOException
sourceHubspotConfig - the source hubspot configoffset - the offset is string typeIOException - on issues with data reading@Nullable public String getEndpoint(SourceHubspotConfig sourceHubspotConfig)
sourceHubspotConfig - the source hubspot configpublic static io.cdap.cdap.api.data.format.StructuredRecord transform(String value, SourceHubspotConfig config)
value - the value is string typeconfig - the source hubspot configCopyright © 2022. All rights reserved.