Giter Club home page Giter Club logo

axosoftapi.net's People

Contributors

brettgaxosoft avatar dpen2000 avatar gusarizona avatar w4g3n3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axosoftapi.net's Issues

AuthResponseData

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?

SecurityRole issue for single user

Hi, found one issue with api, when those changes were made for SecurityRole, from int[] to IEnumerable

3f2a0e3

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": {
}
}

access token odd

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

Unable to see full escalation levels data

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.

Attachments.GetData

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

WorkLogs.Get gives invalid response when querying with startDate == endDate

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.

.NET Core Support

Do you plan on releasing a nuget version which works with .net core?

Versions

API valid for all versions ? obsolete ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.