{"action":"reopened","issue":{"url":"https://api.github.com/repos/Temasys/SkylinkSDK-iOS-Sample/issues/2","labels_url":"https://api.github.com/repos/Temasys/SkylinkSDK-iOS-Sample/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Temasys/SkylinkSDK-iOS-Sample/issues/2/comments","events_url":"https://api.github.com/repos/Temasys/SkylinkSDK-iOS-Sample/issues/2/events","html_url":"https://github.com/Temasys/SkylinkSDK-iOS-Sample/issues/2","id":94040560,"number":2,"title":"Incorrect URL generated by connectToRoomWithCredentials","user":{"login":"sdac","id":962831,"avatar_url":"https://avatars.githubusercontent.com/u/962831?v=3","gravatar_id":"","url":"https://api.github.com/users/sdac","html_url":"https://github.com/sdac","followers_url":"https://api.github.com/users/sdac/followers","following_url":"https://api.github.com/users/sdac/following{/other_user}","gists_url":"https://api.github.com/users/sdac/gists{/gist_id}","starred_url":"https://api.github.com/users/sdac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdac/subscriptions","organizations_url":"https://api.github.com/users/sdac/orgs","repos_url":"https://api.github.com/users/sdac/repos","events_url":"https://api.github.com/users/sdac/events{/privacy}","received_events_url":"https://api.github.com/users/sdac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-09T12:51:09Z","updated_at":"2015-07-10T04:37:49Z","closed_at":null,"body":"Despite giving this function the correct credentials, it generates a URL of the form:\r\n\r\n```\r\nhttp://api.temasys.com.sg/api/8b787551-1cf7-43e3-a1fa-90d2f9444014/1/2015-07-09T12:18:23.0Z/100000.000000?cred=q8B1vimCZflsMWzQ3QqaQDYpI68%3D\r\n```\r\n\r\nWhich is incorrect, the \"duration\" value is written as a double when the URL is created. This yields the response:\r\n\r\n```\r\n{\r\n  \"success\": false,\r\n  \"error\": 4005,\r\n  \"info\": \"The credentials is not matched for the apiKey . Please go to developer.temasys.com.sg to manage your api keys.\"\r\n}\r\n```\r\n\r\nThe issue can be fixed manually for each URL by removing the fractional part of the \"duration\" as shown below:\r\n\r\n```\r\nhttp://api.temasys.com.sg/api/8b787551-1cf7-43e3-a1fa-90d2f9444014/1/2015-07-09T12:18:23.0Z/100000?cred=q8B1vimCZflsMWzQ3QqaQDYpI68%3D\r\n```\r\n\r\nThe above URLs can be verified using curl. Though since this behaviour is part of the SDK and out of our control we can't fix it ourselves.\r\n\r\nI hope this issue will be fixed in short since it currently prevents us from using this lib."}}