Api intergration

suggest to me some Libraries so I can use them with defold for API integration client and server communication. am still in the learning stage please help me Thank you :))

What kind of server?

You can use http.request() to create http request for instance.

1 Like

like grpc server. GitHub - jinq0123/grpc-lua: The Lua gRPC binding. HTTP/2 based RPC http://grpc.io

Well since it is Lua based it should work in Defold with some modifications to use http.request()

1 Like

ok, thank you for the response.

Hii am trying use exported cpp in DEFOLD this is the flow am doing ==> I create one person.proto file and using this command ==> [protoc --cpp_out=. person.proto] to exported to cpp it generates the two file person.pb.cc and person.pb.h, using defold extension, but how I can use generated file inside main.cpp. our main intension is to use exported protobuf cpp in defold .

extension link: Writing native extensions for Defold

sorry, every time am coming with a new problem because this platform is new to me please suggest so I can solve this issue.

Ok, so you are creating a native extension? Weren’t you going to use that Lua based grpc client you linked?

If you put .cpp and .h files inside your extension src folder they will be included and can be used from your native extension.

1 Like