I am using a pythoncaller to access Zoom API to download unique meeting IDs.
The code is:
import ssl
import http.client
import zipfile
import fme
import fmeobjects
# Template Function interface:
# When using this function, make sure its name is set as the value of
# the 'Class or Function to Process Features' transformer parameter
def processFeature(feature):
pass
# Template Class Interface:
# When using this class, make sure its name is set as the value of
# the 'Class or Function to Process Features' transformer parameter
class FeatureProcessor(object):
def __init__(self):
pass
def input(self,feature):
self.pyoutput(feature)
def close(self):
pass
#Setting User Parameters
MeetingID = "?????????"
conn.request("GET", "/v2/past_meetings/"+ MeetingID +"/instances", headers=headers)
What I would like to do is set MeetingID to feature.getAttribute('SCO_Zoom_Meeting_ID__c') where that is a value returned from a query from my database.
I would appreciate any help. If I just set MeetingID = feature.getAttribute('SCO_Zoom_Meeting_ID__c') it errors saying 'feature' is not defined.