Module Expr Str Assign NameStore Str ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore Str AugAssignAdd NameStore NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Dict Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad TryExcept body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd Str NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Dict Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad TryExcept body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd Str NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad TryExcept body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Assign NameStore Call NameLoad Dict NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd Str NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list
N/A N/A Helper functions to upload mediacontent to cards N/A __author__ scarygami@gmail.com (Gerwin Sturm) utils base_url N/A io N/A json N/A logging apiclient errors apiclient.http MediaIoBaseUpload N/A _BOUNDARY -----1234567890abc _create_multipart_body N/A N/A metadata content contentType N/A N/A N/A base64_data N/A N/A N/A N/A content encode base64 replace N/A multipart_body N/A N/A 
-- _BOUNDARY N/A multipart_body Content-Type: application/json

 N/A multipart_body N/A N/A json dumps metadata N/A multipart_body N/A N/A 
-- _BOUNDARY N/A multipart_body N/A N/A Content-Type:  contentType N/A multipart_body Content-Transfer-Encoding: base64

 N/A multipart_body base64_data N/A multipart_body N/A N/A 

-- _BOUNDARY -- N/A multipart_body N/A multipart_insert N/A N/A metadata content contentType service test N/A N/A N/A N/A metadata None N/A N/A metadata N/A N/A Insert a new card with metainfo card and media. N/A N/A test None N/A N/A media N/A MediaIoBaseUpload N/A N/A io BytesIO content contentType resumable True N/A N/A N/A N/A N/A N/A N/A N/A N/A service timeline insert body metadata media_body media execute N/A N/A N/A N/A errors HttpError N/A error N/A N/A N/A N/A logging error N/A Multipart update error: %s error N/A error N/A multipart_body N/A _create_multipart_body metadata content contentType N/A headers N/A N/A N/A headers N/A Content-Type N/A N/A multipart/related; boundary=" _BOUNDARY " N/A N/A N/A N/A service _http request N/A base_url /upload/mirror/v1/timeline method POST body multipart_body headers headers N/A multipart_update N/A N/A cardId metadata content contentType service test N/A N/A N/A N/A metadata None N/A N/A metadata N/A N/A Update a card with metainfo and media. N/A N/A test None N/A N/A media N/A MediaIoBaseUpload N/A N/A io BytesIO content contentType resumable True N/A N/A N/A N/A N/A N/A N/A N/A N/A service timeline update id cardId body metadata media_body media execute N/A N/A N/A N/A errors HttpError N/A error N/A N/A N/A N/A logging error N/A Multipart update error: %s error N/A error N/A multipart_body N/A _create_multipart_body metadata content contentType N/A headers N/A N/A N/A headers N/A Content-Type N/A N/A multipart/related; boundary=" _BOUNDARY " N/A N/A N/A N/A service _http request N/A %s/upload/mirror/v1/timeline/%s N/A base_url cardId method POST body multipart_body headers headers N/A media_insert N/A N/A cardId content contentType service test N/A N/A N/A Insert attachment to an existing card. N/A N/A test None N/A N/A media N/A MediaIoBaseUpload N/A N/A io BytesIO content contentType resumable True N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A service timeline attachments insert id cardId media_body media execute N/A N/A N/A N/A errors HttpError N/A error N/A N/A N/A N/A logging error N/A Attachment insert error: %s error N/A error N/A multipart_body N/A _create_multipart_body N/A content contentType N/A headers N/A N/A N/A headers N/A Content-Type N/A N/A multipart/related; boundary=" _BOUNDARY " N/A N/A N/A N/A service _http request N/A %s/upload/mirror/v1/timeline/%s/attachments N/A base_url cardId method POST body multipart_body headers headers N/A