<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Shephertz Community - Recent questions in App42 API Gateway</title>
<link>http://forum.shephertz.com/?qa=questions/products/app42-api-gateway</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to remove message from Queue by message id ?</title>
<link>http://forum.shephertz.com/?qa=11614/how-to-remove-message-from-queue-by-message-id</link>
<description>SendMessageNotification.queueService.RemoveMessage(SendMessageNotification.queueName, message.GetMessageId(), new RemoveMessageCallBack()); why this code not work no exception do nothing why???????????????????? how to solve it ??????????</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11614/how-to-remove-message-from-queue-by-message-id</guid>
<pubDate>Fri, 18 Feb 2022 16:47:51 +0000</pubDate>
</item>
<item>
<title>Wrong Base64 encoidng</title>
<link>http://forum.shephertz.com/?qa=11332/wrong-base64-encoidng</link>
<description>&lt;p&gt;
	I tried using Base64 encoding/decoding in JS for non-latin symbols in leaderboard, but run into problem - It doesn't encode russian symbols correctly&lt;/p&gt;
&lt;p&gt;
	Here is example - I try encoding username &quot;Женя&quot;.&lt;br&gt;
	JS script displays username, followed by encoded name, followed by decoded encoded name&lt;/p&gt;
&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://forum.shephertz.com/?qa=blob&amp;amp;qa_blobid=14100019425942045258&quot; style=&quot;width: 499px; height: 96px;&quot;&gt;&lt;/p&gt;
&lt;p&gt;
	However, the output is incorrect:&lt;/p&gt;
&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://forum.shephertz.com/?qa=blob&amp;amp;qa_blobid=2767392101446904104&quot; style=&quot;width: 125px; height: 78px;&quot;&gt;&lt;/p&gt;
&lt;p&gt;
	Is there any solution other than forbidding non-latin usernames?&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11332/wrong-base64-encoidng</guid>
<pubDate>Tue, 16 Oct 2018 15:06:13 +0000</pubDate>
</item>
<item>
<title>Encoding problem with non-latin characters</title>
<link>http://forum.shephertz.com/?qa=11330/encoding-problem-with-non-latin-characters</link>
<description>&lt;p&gt;
	Here is a problem I've encountered when was using leaderboard API.&lt;/p&gt;
&lt;p&gt;
	When a user sends russian name to a leaderboard, It behaves strangely - on &quot;Leaderboard&quot; section it displays his name correctly, but on &quot;Scores&quot; it displays &quot;????&quot;. Actually, It is a minor problem on itself, because I could've just referenced it by scoreId to find in &quot;Scores&quot; table.&lt;/p&gt;
&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://forum.shephertz.com/?qa=blob&amp;amp;qa_blobid=3269632585339405334&quot; style=&quot;width: 600px; height: 116px;&quot;&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://forum.shephertz.com/?qa=blob&amp;amp;qa_blobid=6434918547293999244&quot; style=&quot;width: 600px; height: 181px;&quot;&gt;&lt;/p&gt;
&lt;p&gt;
	But here is a strange bug I've found:&lt;br&gt;
	If I delete score of user with non-latin nickname, it actually only deletes it in &quot;Scores&quot; section (where it is displayed as &quot;????&quot;) but not from the leaderboard and the game itself. Moreover, I can't find a way to delete a score of user with broken nickname - it only deletes it in &quot;Scores&quot;, but not in &quot;LeaderBoard&quot;.&lt;br&gt;
	&lt;br&gt;
	Is there a way to fix it other then Base64 encoding?&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11330/encoding-problem-with-non-latin-characters</guid>
<pubDate>Mon, 15 Oct 2018 19:23:36 +0000</pubDate>
</item>
<item>
<title>How to store username with different names for push notification.</title>
<link>http://forum.shephertz.com/?qa=10428/store-username-with-different-names-for-push-notification</link>
<description>&lt;div&gt;
	Hi,&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	I'm using push notifications with App42 API but when i register name with same username via different devices then duplicate name store. how can i use getuser list or any check for checking if user name alerady registered for notification or exist ?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Thnaks&lt;/div&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10428/store-username-with-different-names-for-push-notification</guid>
<pubDate>Wed, 19 Apr 2017 13:17:14 +0000</pubDate>
</item>
<item>
<title>updating key by query...</title>
<link>http://forum.shephertz.com/?qa=10340/updating-key-by-query</link>
<description>&lt;p&gt;
	why there is no &lt;strong&gt;UpdateKeyByQuery&lt;/strong&gt;() service??&lt;br&gt;
	&lt;br&gt;
	because i have a complex query to find a document...&lt;br&gt;
	&amp;nbsp;now, i need to update a key of this perticular document..,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	i can do this by &lt;strong&gt;UpdateDocumentByQuery&lt;/strong&gt;, but for this i have to pass whole new document to be updated. And i dont know the other KeyValues of that document...&lt;br&gt;
	i want to just update a single key...&lt;br&gt;
	&lt;br&gt;
	now, this also can be achived by 2 seperate request.. first to get the whole document and then update it.&lt;br&gt;
	But i need to do this in &lt;strong&gt;single request&lt;/strong&gt; only because there are chances of concurrent updations by different users...&lt;br&gt;
	&lt;br&gt;
	So, how do i achieve this??&lt;br&gt;
	Something like &lt;strong&gt;UpdateKeyByQuery&lt;/strong&gt;() would have saved mee...&lt;br&gt;
	kindly help me plzz...&lt;br&gt;
	&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10340/updating-key-by-query</guid>
<pubDate>Thu, 30 Mar 2017 12:43:26 +0000</pubDate>
</item>
<item>
<title>choosing right approach for loaderboard...</title>
<link>http://forum.shephertz.com/?qa=10260/choosing-right-approach-for-loaderboard</link>
<description>&lt;p&gt;
	My game requires an &lt;strong&gt;alltime&lt;/strong&gt; leaderbord in which everytime after a win&amp;nbsp;some score would be added to previously stored score .... and also a &lt;strong&gt;daily&lt;/strong&gt; leaderboard &amp;nbsp;where all the records would be zeroed at the end of the day.&lt;br&gt;
	So for alltime, i am following the below approach..&lt;/p&gt;
&lt;p&gt;
	# &lt;strong&gt;saveUserScore()&lt;/strong&gt; for the &amp;nbsp;first time, and after that for every score updation(win), &lt;strong&gt;getLastScore&lt;/strong&gt;() and change it with some new score&lt;br&gt;
	So, is this approach okay?&lt;/p&gt;
&lt;p&gt;
	and if so, how do i manage daily leaderboard with this??&lt;/p&gt;
&lt;p&gt;
	or if &amp;nbsp;i am absolutely wrong with all this, kindly suggest me how to do it..&lt;br&gt;
	thanks in advance...&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10260/choosing-right-approach-for-loaderboard</guid>
<pubDate>Thu, 02 Mar 2017 10:42:21 +0000</pubDate>
</item>
<item>
<title>User Service or Storage Service for saving users without email and password?</title>
<link>http://forum.shephertz.com/?qa=10254/service-storage-service-saving-users-without-email-password</link>
<description>&lt;p&gt;
	My app doesn't require &lt;strong&gt;email &lt;/strong&gt;and &lt;strong&gt;password &lt;/strong&gt;for user. it should just create a user and store/access its addition info. So, because email and password are &lt;strong&gt;mendatory&lt;/strong&gt;, should i use some &lt;strong&gt;junk values&lt;/strong&gt; OR should i forget about User Services and directly use &lt;strong&gt;Storage Service&lt;/strong&gt; to save users and related data????&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10254/service-storage-service-saving-users-without-email-password</guid>
<pubDate>Wed, 01 Mar 2017 06:44:35 +0000</pubDate>
</item>
<item>
<title>Number of entries in leaderboard</title>
<link>http://forum.shephertz.com/?qa=9760/number-of-entries-in-leaderboard</link>
<description>Hi All! I really like the feature of Mini Metro, that it displays my score as &amp;quot;top 20%&amp;quot;. I'd like to implement it, but I couldn't figure which API would be the best to use to query total number of players in game. (I'd calculate based on rank, and total ranks). Thanks, Gabor&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
update: I've solved it by a hack, added a user with 1 point for all levels (games) and getting its score as well.</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9760/number-of-entries-in-leaderboard</guid>
<pubDate>Sun, 16 Oct 2016 18:32:57 +0000</pubDate>
</item>
<item>
<title>API Gateway Authentication Signature Not Valid</title>
<link>http://forum.shephertz.com/?qa=9745/api-gateway-authentication-signature-not-valid</link>
<description>&lt;p&gt;
	I'm trying to add an authetication policy to my API, I have created a test API called HelloWorld, i have created an IAM and an authetication&amp;nbsp;policy of type Key.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	I am testing in the &quot;Test API and View Specs&quot; section, i am generating the signature and timeStamp on my machine using this code:&amp;nbsp;&lt;a href=&quot;https://github.com/shephertz/App42_APIGatewayUtillity&quot; rel=&quot;nofollow&quot;&gt;https://github.com/shephertz/App42_APIGatewayUtillity&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	I am calling the signature function like this:&amp;nbsp;generateSignature(apiName, apiVersion, apiKey, secretKey, body); using the following initialization:&lt;/p&gt;
&lt;p&gt;
	String apiName = &quot;HelloWorld&quot;;//&quot;LigaEndesa&quot;;&lt;/p&gt;
&lt;p&gt;
	String apiVersion = &quot;1.0&quot;;&lt;/p&gt;
&lt;p&gt;
	String apiKey = IAM_KEY;&lt;/p&gt;
&lt;div&gt;
	String secretKey = IAM_SECRET_KEY;&lt;/div&gt;
&lt;div&gt;
	String body = &quot;hello&quot;;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	I think all is correct, but when i do the request it says &quot;Signature Not Valid&quot;.&lt;/div&gt;
&lt;div&gt;
	What is the error??&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Thanks!&lt;/div&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9745/api-gateway-authentication-signature-not-valid</guid>
<pubDate>Sat, 08 Oct 2016 15:20:59 +0000</pubDate>
</item>
</channel>
</rss>