Skip to content

Instantly share code, notes, and snippets.

@mweagle
Created May 3, 2017 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mweagle/2648a75a5989fbb541ba405476a68494 to your computer and use it in GitHub Desktop.
Save mweagle/2648a75a5989fbb541ba405476a68494 to your computer and use it in GitHub Desktop.
Python core shim
bytesWritten = lib.Lambda(funcName.encode(‘utf-8’),
json.dumps(request).encode(‘utf-8’),
credentials.access_key.encode(‘utf-8’),
credentials.secret_key.encode(‘utf-8’),
credentials.token.encode(‘utf-8’),
byref(exitCode),
response_content_type_buffer,
MAX_RESPONSE_CONTENT_TYPE_SIZE-1,
response_buffer,
MAX_RESPONSE_SIZE-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment