我正在使用OneDrive API作为CRM中的文件存储,我被问到是否可以在CRM中单击文件直接在Office Online中打开它进行编辑,而不是人们必须下载文件,编辑他们的桌面,重新上传。
我无论如何都无法在文档中找到任何内容,所以也许我的Google-fu目前很低
答案 0 :(得分:1)
您要查找的DriveItem property名为CXX = g++
CXXFLAGS = -std=c++11 -g -Wall -Wextra
OUT_DIR=out
LIB_OUT_DIR=lib
APP_NAME=main
ENGINE_NAME=engine.a
EXECUTABLE=$(OUT_DIR)/$(APP_NAME)
ENGINE_LIB=$(LIB_OUT_DIR)/$(ENGINE_NAME)
ENGINE_OBJECT_DIR=engine/obj
ENGINE_HEADER_DIR=engine/include
ENGINE_SOURCE_DIR=engine/src
ENGINE_SHADER_DIR=engine/shaders
APP_OBJECT_DIR=app/obj
APP_SOURCE_DIR=app/src
ENGINE_OBJECTS = $(ENGINE_OBJECT_DIR)/graphics/window.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/graphics/shader_program.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/graphics/array.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/graphics/attribute_definition.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/graphics/abstract/buffer.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/graphics/simple_buffer.o
# ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/graphics/instance_buffer.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/graphics/index_buffer.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/math/vec2.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/math/vec3.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/math/vec4.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/math/mat4.o
ENGINE_OBJECTS += $(ENGINE_OBJECT_DIR)/util/logging.o
ENGINE_SOURCES = $(ENGINE_SOURCE_DIR)/graphics/window.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/graphics/shader_program.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/graphics/array.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/graphics/attribute_definition.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/graphics/abstract/buffer.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/graphics/simple_buffer.cpp
# ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/graphics/instance_buffer.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/graphics/index_buffer.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/math/vec2.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/math/vec3.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/math/vec4.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/math/mat4.cpp
ENGINE_SOURCES += $(ENGINE_SOURCE_DIR)/util/logging.cpp
ENGINE_SHADERS = \
$(OUT_DIR)/vertexshader.glsl \
$(OUT_DIR)/fragmentshader.glsl
APP_OBJECTS = \
$(APP_OBJECT_DIR)/main.o
APP_SOURCES = \
$(APP_SOURCE_DIR)/main.cpp
ENGINE_CXX_LIBS=-Wl,-Bstatic -lGLEW -lglfw3 -pthread -Wl,-Bdynamic -lGL -lGLU -ldl -lX11 -lXi -lXxf86vm -lXrandr -lXcursor -lXinerama
APP_CXX_LIBS=-L$(LIB_OUT_DIR) -l:$(ENGINE_NAME)
.PHONY: all build clean engine app run
all: clean build run
clean:
rm -f $(OUT_DIR)/* $(LIB_OUT_DIR)/* $(ENGINE_OBJECTS) $(APP_OBJECTS)
build: engine app
run:
cd $(OUT_DIR) && \
./$(APP_NAME)
engine: $(ENGINE_LIB) $(ENGINE_SHADERS)
app: $(EXECUTABLE)
$(ENGINE_OBJECT_DIR)/%.o: $(ENGINE_SOURCE_DIR)/%.cpp $(ENGINE_SOURCES)
$(CXX) -I$(ENGINE_HEADER_DIR) -c -o $@ $< $(CXXFLAGS)
$(ENGINE_LIB): $(ENGINE_OBJECTS)
ar rvs $@ $(ENGINE_OBJECTS)
$(OUT_DIR)/%.glsl: $(ENGINE_SHADER_DIR)/%.glsl
cp -f $< $@
$(APP_OBJECT_DIR)/%.o: $(APP_SOURCE_DIR)/%.cpp $(APP_SOURCES)
$(CXX) -I$(ENGINE_HEADER_DIR) -c -o $@ $< $(CXXFLAGS)
$(EXECUTABLE): $(APP_OBJECTS)
$(CXX) -o $@ $^ $(APP_CXX_LIBS) $(ENGINE_CXX_LIBS)
。对于Office文档(Word,Excel,PowerPoint等),webUrl
包含打开文档的完整链接在线办公室:
webUrl
如果用户还安装了原生Office客户端(Office for Windows,Mac,iPad等),他们还会看到在本机应用程序中打开文档的选项(也会自动处理保存更改)直接回到OneDrive)。
您可以使用this sample in Graph Explorer自行尝试。
答案 1 :(得分:0)
对于那些目前GoogleFu较低的人。 当您从API获取项目信息时,会在其中列出。
欲了解更多信息,我发现搜索的最佳术语是&#34; wopiFrame&#34;它的一部分,因此有一些非常相关的搜索结果。