cronofy / cronofy-csharp Goto Github PK
View Code? Open in Web Editor NEWCronofy .NET SDK
Home Page: https://docs.cronofy.com/developers
License: MIT License
Cronofy .NET SDK
Home Page: https://docs.cronofy.com/developers
License: MIT License
Hello,
Please consider adding async versions for api methods.
Thanks
According to the specification and actual Cronofy behavior, the Event.Status
property is called status
, but the C# connector is expecting event_status
, which is wrong.
cronofy-csharp/src/Cronofy/UrlProvider.cs
Line 131 in 1b4adc9
the url referenced in the file is missing an "s" at the end.
No locale or templating support although API endpoints has it even if it is alpha version it should be at least on development branches
Hello is there anyway to know what is new in the new releases ?
var cronofy = new CronofyAccountClient("xxxxxxxxxx");
string calendarId = "yyyyyyyyyyyyy";
var eventBuilder1 = new UpsertEventRequestBuilder()
.EventId(Guid.NewGuid().ToString())
.Summary("Cancun 17-18 | " + DateTime.Now.ToLongTimeString())
.Description("Event description")
.Start(2019, 11, 04, 17, 00)
.End(2019, 11, 04, 18, 00)
.TimeZoneId("America/Cancun");
var eventBuilder2 = new UpsertEventRequestBuilder()
.EventId(Guid.NewGuid().ToString())
.Summary("Malta 17-18 | " + DateTime.Now.ToLongTimeString())
.Description("Event description")
.Start(2019, 11, 04, 17, 00)
.End(2019, 11, 04, 18, 00)
.TimeZoneId("Europe/Malta");
cronofy.UpsertEvent(calendarId, eventBuilder1);
cronofy.UpsertEvent(calendarId, eventBuilder2);
I would expect this to create appointments at the specified time in the specified timezones - but it seems anything you enter in this overload of start/end is interpreted as UTC time, because this is how they show up in my calendar:
Using DateTime for start and end does not have the same issue.
When creating an event in an external calendar using UpsertEvent, it would bevery useful if the Event object that was modified or created was returned. Without it, I need to fetch the calendar events and attempt to match the returned list agianst the supplied values.
https://docs.cronofy.com/developers/api/authorization/request-authorization/#provider_name
This is missing from the GetAuthorizationUrlBuilder
Hello,
Please consider adding the support of .net standard. It looks like there are no any dependencies which will don't support .net standard and the code should work as well (at least on a first look).
Please note that you can have multiple build targets in nuget package if you would like to keep .net 3.5.
Thanks
cronofy-csharp/src/Cronofy/Date.cs
Line 137 in e717d90
<, <=, >, >= would be nice!
Hi there,
Have started using the API - and have a small blocker with the CronofyOAuthClient.GetTokenFromCode request. Have been trying to create a token from my code, and keep getting an NullReferenceException in the above call.
After a bit of researching, I discovered the scope string was null and trying to convert it to the array was what was causing the Exception.
After struggling through trying to get a look on the what I was sending and receiving back from the request, I discovered I was getting a 400 bad request.
Anyway looking further, the ConcreteHttpClient gets the response (function line 138) - and happily processes it, and then the JSON deserialization happens and happily deserializes the response to an OAuthTokenResponse object, despite not containing any of the correct data.
So when ToToken() is called, none of the data is there and it causes a null reference exception.
Let me know if you require anymore information - it's 10:30PM here in Aus so I may not be completely fluent in my point :D
Thanks heaps
Richard Young
Senior Software Engineer
JobAdder
While I'm on a roll with issues, just wanted to flag this one as well.
We use an internal nuget package repository that pipes through all packages on nuget.org
When I try to install the Cronofy package via our repository it fails (if I go via nuget.org it works ok). But I can't install any other packages because the Cronofy package was constantly blocking it (I would remove it from packages.config - do my updates, and then add it back in).
When it came time to package up the library that had the Cronofy package, it failed with the error
"'Default' tag requires a nonempty 'Extension' attribute. Position 1, Line 506
Google wasn't much help, apart from this random github issue : oxyplot/oxyplot#184
So I downloaded the nuget package and went searching and found the issue in the above file:
<?xml version="1.0"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>
<Default ContentType="application/octet" Extension="nuspec"/>
<Default ContentType="application/octet" Extension="dll"/>
<Default ContentType="application/octet" Extension="xml"/>
<Default ContentType="application/octet" Extension="config"/>
<Default ContentType="application/octet" Extension="csproj"/>
<Default ContentType="application/octet" Extension="cs"/>
<Default ContentType="application/octet" Extension=""/> <!-- Problem line -->
<Default ContentType="application/octet" Extension="md"/>
<Default ContentType="application/vnd.openxmlformats-package.core-properties+xml" Extension="psmdcp"/>
</Types>
Removing the offending line, and pushing it to our repository solved the problem completely.
Not 100% sure what would causing the issue, but did want to flag it.
Thanks heaps
Richard Young
Senior Software Engineer
JobAdder
I was going about using this library to form and send requests to the Availability API using
I noticed however that there are some missing request parameters that the Availability API does accept in actual requests including:
response_format
max_results
I would like to see these added to the library. I can add them myself and put up a PR if that route makes sense. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.