{"action":"created","issue":{"url":"https://api.github.com/repos/hotelbeds-sdk/hotel-api-sdk-Net/issues/2","repository_url":"https://api.github.com/repos/hotelbeds-sdk/hotel-api-sdk-Net","labels_url":"https://api.github.com/repos/hotelbeds-sdk/hotel-api-sdk-Net/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hotelbeds-sdk/hotel-api-sdk-Net/issues/2/comments","events_url":"https://api.github.com/repos/hotelbeds-sdk/hotel-api-sdk-Net/issues/2/events","html_url":"https://github.com/hotelbeds-sdk/hotel-api-sdk-Net/issues/2","id":135271198,"number":2,"title":"HotelApiClient Error","user":{"login":"mohamedalyattia","id":17392571,"avatar_url":"https://avatars.githubusercontent.com/u/17392571?v=3","gravatar_id":"","url":"https://api.github.com/users/mohamedalyattia","html_url":"https://github.com/mohamedalyattia","followers_url":"https://api.github.com/users/mohamedalyattia/followers","following_url":"https://api.github.com/users/mohamedalyattia/following{/other_user}","gists_url":"https://api.github.com/users/mohamedalyattia/gists{/gist_id}","starred_url":"https://api.github.com/users/mohamedalyattia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohamedalyattia/subscriptions","organizations_url":"https://api.github.com/users/mohamedalyattia/orgs","repos_url":"https://api.github.com/users/mohamedalyattia/repos","events_url":"https://api.github.com/users/mohamedalyattia/events{/privacy}","received_events_url":"https://api.github.com/users/mohamedalyattia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-21T22:47:44Z","updated_at":"2016-02-24T17:31:14Z","closed_at":null,"body":"i am using this code \r\nHotelApiClient client = new HotelApiClient();\r\nStatusRS status = client.status();\r\n\r\nif (status != null && status.error == null)\r\nResponse.Write(\"StatusRS: \" + status.status);\r\nelse if (status != null && status.error != null)\r\n{\r\nResponse.Write(\"StatusRS: \" + status.status + \" \" + status.error.code + \": \" + status.error.message);\r\nreturn;\r\n}\r\nelse if (status == null)\r\n{\r\nResponse.Write(\"StatusRS: Is not available.\");\r\nreturn;\r\n}\r\n\r\nAvailability avail = new Availability();\r\navail.checkIn = DateTime.Now.AddDays(10);\r\navail.checkOut = DateTime.Now.AddDays(13);\r\navail.destination = \"PMI\";\r\navail.zone = 90;\r\navail.language = \"CAS\";\r\nAvailRoom room = new AvailRoom();\r\nroom.adults = 2;\r\nroom.children = 0;\r\nroom.details = new List<RoomDetail>();\r\nroom.adultOf(30);\r\nroom.adultOf(30);\r\n//room.childOf(4);\r\navail.rooms.Add(room);\r\navail.payed = Availability.Pay.AT_HOTEL;\r\n\r\nAvailabilityRQ availabilityRQ = avail.toAvailabilityRQ();\r\nif (availabilityRQ == null)\r\nthrow new Exception(\"Availability RQ can't be null\", new ArgumentNullException());\r\n\r\nAvailabilityRS responseAvail = client.doAvailability(availabilityRQ);\r\n\r\nif (responseAvail != null && responseAvail.hotels != null && responseAvail.hotels.hotels != null && responseAvail.hotels.hotels.Count > 0)\r\n{\r\nforeach (var hotel in responseAvail.hotels.hotels)\r\nResponse.Write(String.Format(\"Hotel Name: {0} Category Name: {1} Destination: {2} Rooms: {3}\", hotel.name, hotel.categoryName, hotel.destinationName, hotel.rooms.Count));\r\n}\r\n\r\nand show this error :\r\nHotelApiClient cannot be created without specifying an API key, Shared Secret, the Hotel API version and the service you are connecting to."},"comment":{"url":"https://api.github.com/repos/hotelbeds-sdk/hotel-api-sdk-Net/issues/comments/188367579","html_url":"https://github.com/hotelbeds-sdk/hotel-api-sdk-Net/issues/2#issuecomment-188367579","issue_url":"https://api.github.com/repos/hotelbeds-sdk/hotel-api-sdk-Net/issues/2","id":188367579,"user":{"login":"alvmunoz","id":17126683,"avatar_url":"https://avatars.githubusercontent.com/u/17126683?v=3","gravatar_id":"","url":"https://api.github.com/users/alvmunoz","html_url":"https://github.com/alvmunoz","followers_url":"https://api.github.com/users/alvmunoz/followers","following_url":"https://api.github.com/users/alvmunoz/following{/other_user}","gists_url":"https://api.github.com/users/alvmunoz/gists{/gist_id}","starred_url":"https://api.github.com/users/alvmunoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvmunoz/subscriptions","organizations_url":"https://api.github.com/users/alvmunoz/orgs","repos_url":"https://api.github.com/users/alvmunoz/repos","events_url":"https://api.github.com/users/alvmunoz/events{/privacy}","received_events_url":"https://api.github.com/users/alvmunoz/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T17:31:14Z","updated_at":"2016-02-24T17:31:14Z","body":"`  <appSettings>\r\n    <add key=\"ApiKey\" value=\"XXXX\" />\r\n    <add key=\"SharedSecret\" value=\"XXXX\" />\r\n    <add key=\"ENVIRONTMENT\" value=\"TEST\" />\r\n    <add key=\"TEST\" value=\"https://api.test.hotelbeds.com/hotel-api\" />\r\n    <add key=\"LIVE\" value=\"https://api.hotelbeds.com/hotel-api\" />\r\n    <add key=\"DEVELOPMENT\" value=\"http://localhost:8181\" />\r\n  </appSettings>\r\n`\r\n\r\nreplacing the XXX by your ApiKey and Sharedsecret"}}