Hi, I am having this same issue. Just going through the SDK guide to send data from the documentation.
Here’s my amazing console application:
using System.Collections.ObjectModel;
using Objects.BuiltElements;
using Speckle.Core.Api;
using Speckle.Core.Credentials;
using Speckle.Core.Models;
using Speckle.Core.Transports;
Base data = new Base();
// Loop from 0 to 9 and create a room with name
Collection<Room> rooms = new Collection<Room>();
for (int i = 0; i < 10; i++)
{
Room room = new Room() {
area = 100 * i,
volume = 1000,
name = "Room " + i
};
}
string projectId = "myProjectId";
var serverInfo = new ServerInfo() { url = "https://myserver.speckle.xyz" };
var account = new Account() { serverInfo = serverInfo, token = "mytoken" };
var client = new Client(account);
var transport = new ServerTransport(account, projectId);
var objectId = await Operations.Send(data, new List<ITransport>() { transport });
Console.WriteLine("Object sent with id: " + objectId);
Anyone can help?