Code Monkey home page Code Monkey logo

dnsimple-csharp's People

Contributors

anderly avatar edcourtenay avatar geoffappleford avatar lethek avatar scarlettcode avatar weppos avatar ysilvestrov avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dnsimple-csharp's Issues

Nuget package 0.6.1 not matching master

The updates you merged into master aren't in the nuget package. If I run from master everything works. If I use the nuget package I get RestSharp errors

Thanks

Conversion to netstandard

Howdy Andery - wondering what your intentions are as to converting over to netstandard. Do you take PR's?

API v2 support

I see this client is currently using API v1. API v1 will be shut down at the end of May.

I don't have the knowledge or resources to provide a PR, but I'll be more than happy to assist if you have any questions about API v2.

For curiosity, do you have any plan to support API v2?

Error Creating Domain - user issue, code issue, library issue or api issue?

I am a newbie to this library and DnSimple.

Did the API change or is there an error that is not yet raised?

I am running a pretty basic test via Postman and am getting the following error from the following code. I get the error both authenticating with password or token and also with either version of JxonFx (the original - 2.0.1106.2610) or the new one (2.0.1298.2802).

Code:
var dns = new DNSimpleRestClient("[email protected]", null", "SomeTokenHere);
dynamic result = dns.AddDomain(domain);

Error Returned:
{
"message": "An error has occurred.",
"exceptionMessage": "Method 'Deserialize' in type 'DNSimple.Infrastructure.JsonFxDeserializer' from assembly 'DNSimple.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.",
"exceptionType": "System.TypeLoadException",
"stackTrace": " at DNSimple.DNSimpleRestClient..ctor(String username, String password, String token)\r\n at xyz.DomainsController.CreateDomain(String domain) in path\to\controller\DommainsController.cs:line 95\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()"
}

Strangely enough I think I am also getting an error submitting directly to the site but am not sure if I am just doing something wrong. Using postman:

POST /v1/domains HTTP/1.1
Host: api.dnsimple.com
X-DNSimple-Token: [email protected]:SomeTokenHere
Cache-Control: no-cache
{
"domain": {
"name": "example.com"
}
}

400 message being returned:
{
"message": "Required parameter missing: domain"
}
{
"message": "Required parameter missing: domain"
}

Ability to Apply a Template

Hello,

The ability to add a template would be great and seems like a really simple addition. Is this something you could add or I could attempt to do?

I don't think getting into the weeds of creating and modifying templates is needed, but the ability to apply a template to a domain programmatically would be great.

http://developer.dnsimple.com/templates/applied/

Thanks!

Adding capability to return/list records based on record_type

It would be useful to have a get list of records based on the record_type. Are you open to having a method created to handle that? Would be really nice.

If so, how would you like to move forward with making/proposing changes? You do it yourself or have it submitted via a pull request?

Thanks

How to return Status Code and Message

Hello,

Do you have an example on how to get the status code returned by the api calls?

Trying to show the raw message returned if "not" OK and serialize the results otherwise.

Thanks!

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.