axosoft / axosoftapi.net Goto Github PK
View Code? Open in Web Editor NEW.NET wrapper for the Axosoft API
License: MIT License
.NET wrapper for the Axosoft API
License: MIT License
Hi,
First thanks for this api
I have problem with using above function
Result GetData(int id, IList<KeyValuePair<string, object>> parameters = null)
When code is in part SteamExtensions
public static T DeserializeToJson(this Stream stream)
i get exception Unexpected character encountered while parsing value: �. Path '', line 0, position 0.
from what i can see it is trying to deserialize AttachmentMetadata from stream, but that stream is application/octet-stream, raw data
can you help
No work logs are expected, but the API returns a value that is not interpreted by the nuget package. For instance:
GET /api/v6/work_logs?start_date=Monday%2c+November+27%2c+2017&end_date=Monday%2c+November+27%2c+2017 HTTP/1.1
returns
{"data":[],"metadata":{"total_count":0,"page":0,"page_size":0,"minutes_worked":0.0,"minutes_estimated":0.0,"minutes_remaining":0.0,"percent_complete":"NaN"}}
Where the 'percent_complete' cannot be translated to a number, so the query fails. Although it is a nonsense result, the return object should still be a success, but with zero objects.
Hi, found one issue with api, when those changes were made for SecurityRole, from int[] to IEnumerable
problem is that if you request single user like this
proxy.Users.Get(15).Data; you will get error, because result contains int[] for SecurityRole
"data": {
"id": 15,
"first_name": "x",
"last_name": "y",
"is_active": true,
"is_locked": false,
"email": "[email protected]",
"login_id": "x.y",
"source_control_user_names": [],
"use_windows_auth": false,
"windows_id": "",
"security_roles": [3,
7,
5,
4],
"copy_settings_user_id": null,
"password": null,
"use_gravatar": true
},
"metadata": {
}
}
Hi,
this is not issue but request, in proxy class ObtainAccessToken, when request is made to ontime
var authResponse = baseRequest.Get("oauth2/token", tokenParam);
// Store access token and Access response data
AccessToken = authResponse.AccessToken;
that response has additional data that could be used
my modified part
public class AuthResponse
{
[JsonProperty("access_token")]
public string AccessToken { get; set; }
[JsonProperty("data")]
public AuthResponseData AccessTokenData { get; set; }
}
public class AuthResponseData
{
[JsonProperty("id")]
public string UserId { get; set; }
[JsonProperty("first_name")]
public string UserFirstName { get; set; }
[JsonProperty("last_name")]
public string UserLastName { get; set; }
[JsonProperty("email")]
public string UserEmail { get; set; }
[JsonIgnore]
public string UserLoginName { get; set; }
}
could you include that into source, AuthResponseData?
Hi,
axosoftClient.ObtainAccessTokenFromUsernamePassword method is failing if we use latest Newtonsoft.Json version 9.0.1
The API perfectly works for Newtonsoft.Json version 6.00
I'm trying to get escalation levels, using: proxy.Picklists.Get("escalation")
I am able to see the top-level name of the escalation level but none of the details. I was expecting to see the details show up in the Values property, except that is empty.
When I view the raw JSON values coming back from the API, all of the information is there. It is just not being surfaced in the .Net client.
The problem isn't isolated to escalation levels, either. Any of the special multi-level or multi-field lists have the same issue.
API valid for all versions ? obsolete ?
is there a dependency missing or has anyone else experienced ObtainAccessTokenFromUsernamePassword not returning an access token on some machines but not others?
our build server never gets an access token but the dev machines this code works just fine
Do you plan on releasing a nuget version which works with .net core?
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.