how to import .glb file in blender 2.80 beta using python api? I want to import a model of bench in .glb format using python inside blender.

What function am I supposed to use?
GLB is the binary form of the glTF format, and the importer (2.80 and higher, or 2.79 with manual install) can handle GLB filenames directly.

bpy.ops.import_scene.gltf(filepath='path/to/myFile.glb')