<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Shephertz Community - Recent questions and answers in App42 API Gateway</title>
<link>http://forum.shephertz.com/?qa=qa/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>Answered: Wrong Base64 encoidng</title>
<link>http://forum.shephertz.com/?qa=11332/wrong-base64-encoidng&amp;show=11333#a11333</link>
<description>Hi Vladimir,&lt;br /&gt;
&lt;br /&gt;
We have forwarded your query to our team, we will get back to you as soon as possible.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Priyanka Singh&lt;br /&gt;
&lt;br /&gt;
App42 Team</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11332/wrong-base64-encoidng&amp;show=11333#a11333</guid>
<pubDate>Wed, 17 Oct 2018 04:47:25 +0000</pubDate>
</item>
<item>
<title>Answered: Encoding problem with non-latin characters</title>
<link>http://forum.shephertz.com/?qa=11330/encoding-problem-with-non-latin-characters&amp;show=11331#a11331</link>
<description>&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;Hi Vladimir,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;Greetings!!!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;Could you please add us (&lt;strong&gt;collaborator@shephertz.com)&lt;/strong&gt;&amp;nbsp;as collaborator into your application, It will help us to provide better support to you from our end.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;For adding us as a collaborator please follow the below steps:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;App42 Cloud API-&amp;gt;AppManager-&amp;gt;Collaborator-&amp;gt;Add Collaborator-&amp;gt;Enter above mentioned emailId and submit&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;Also, please share the AppName, game name and &lt;strong&gt;ScoreId &lt;/strong&gt;which you have to delete from the leaderbord, we will delete those records from the backend.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot;&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;Going forward in the case if you have to save the leaderboard of non -english character, You can use the Base 64 Encode and Decode technique, where you have to encode your Non-English&amp;nbsp;character before you are going to create the leaderboard, fetching this record back you have to decode back this encoded data. This is directly supported by our SDK.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot;&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;For getting more detail please have a look at 10th point in this&amp;nbsp;&lt;a href=&quot;http://api.shephertz.com/tutorial/FAQ/?index=faq&quot; rel=&quot;nofollow&quot; style=&quot;text-decoration-line: none; color: rgb(42, 169, 224);&quot;&gt;link&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot;&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot;&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;Priyanka Singh&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot;&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica,sans-serif;&quot;&gt;App42 Team&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=11330/encoding-problem-with-non-latin-characters&amp;show=11331#a11331</guid>
<pubDate>Tue, 16 Oct 2018 05:59:11 +0000</pubDate>
</item>
<item>
<title>Answered: 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&amp;show=10430#a10430</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
We recommend to maintain the userName as unique while registering the user for Push Notification. Whenver you call storeDeviceToken API to register a user, server works as follows:&lt;br /&gt;
&lt;br /&gt;
1. if user already exists and if the token received along with current request is same as the previuos token then you will get User Already Exists exception&lt;br /&gt;
&lt;br /&gt;
2. if user already exists and if the token received along with current request is different than the previuos token then it will consider it different device for the same user and create one more entry for that user&lt;br /&gt;
&lt;br /&gt;
3. if user does not exist but the device token received is already registered for another user name then server replaces the existing user name with the user name came with current request&lt;br /&gt;
&lt;br /&gt;
As of now, get API for fetching the users registered for push is not available.&lt;br /&gt;
&lt;br /&gt;
Please let me know if you have any further queries, I will be happy to help you.&lt;br /&gt;
&lt;br /&gt;
Thanks.</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10428/store-username-with-different-names-for-push-notification&amp;show=10430#a10430</guid>
<pubDate>Thu, 20 Apr 2017 07:13:52 +0000</pubDate>
</item>
<item>
<title>Answered: updating key by query...</title>
<link>http://forum.shephertz.com/?qa=10340/updating-key-by-query&amp;show=10343#a10343</link>
<description>&lt;p&gt;
	Hi Abhishek,&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	We understand your concern and use-case regarding the new function&amp;nbsp;&lt;strong style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, Sens-serif; font-size: 14px;&quot;&gt;UpdateKeyByQuery().&amp;nbsp;&lt;/strong&gt;But as of now, we don't have any plan to release this functionality. I am forwarding your request to our production team, if we get more request then definitely, will take this on priority and release&amp;nbsp;in our future updates. &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	As of now, you can use multiple functions to update the document like first fetch the list of documents using query method and then update specific key using &lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/nosql-storage-service/#insert-json-doc-using-map&quot;&gt;addOrUpdateKeys&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/nosql-storage-service/#insert-json-doc-using-map&quot;&gt; &lt;/a&gt;method of Storage service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Let me know if you need further help from our side.&lt;/p&gt;
&lt;p&gt;
	We will be happy to help you!&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Himanshu Sharma&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10340/updating-key-by-query&amp;show=10343#a10343</guid>
<pubDate>Fri, 31 Mar 2017 06:01:09 +0000</pubDate>
</item>
<item>
<title>Answered: choosing right approach for loaderboard...</title>
<link>http://forum.shephertz.com/?qa=10260/choosing-right-approach-for-loaderboard&amp;show=10267#a10267</link>
<description>&lt;p&gt;
	Hi Abhishek,&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	To update the user score, you can use&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://api.shephertz.com/app42-docs/leaderboard-service/#edit-score-value-by-id&quot;&gt;editScoreValueById&lt;/a&gt;&amp;nbsp;function available in the Leaderboard service. Logic will remain same like getting the last score, add the new score in last one saved and update with the&amp;nbsp;new score.&lt;/p&gt;
&lt;p&gt;
	Regarding your second query, &amp;nbsp;I would suggest you create multiple games inside AppHQ Management Console for daily leaderboard. And at the time of saving user score, make two API calls. In which one will save user score on a daily level leaderboard and second will save entry on a&amp;nbsp;global leaderboard.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Using the above approach, will not be required you to make all users score to zero, You can directly go and delete the game to make the remove all the entries of the users. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Let us know if you required any other information from our end.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	Regards,&lt;/p&gt;
&lt;p&gt;
	Himanshu Sharma&lt;/p&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10260/choosing-right-approach-for-loaderboard&amp;show=10267#a10267</guid>
<pubDate>Fri, 03 Mar 2017 12:34:33 +0000</pubDate>
</item>
<item>
<title>Answered: 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&amp;show=10257#a10257</link>
<description>Hi Abhishek,&lt;br /&gt;
&lt;br /&gt;
Yes, you can use Storage service directly to store the user related information. All services(modules) in App42 Cloud API are independent to each other. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Let me know if you have any other queries. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Himanshu Sharma</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=10254/service-storage-service-saving-users-without-email-password&amp;show=10257#a10257</guid>
<pubDate>Wed, 01 Mar 2017 09:12:56 +0000</pubDate>
</item>
<item>
<title>Answered: Number of entries in leaderboard</title>
<link>http://forum.shephertz.com/?qa=9760/number-of-entries-in-leaderboard&amp;show=9781#a9781</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Great to know that you have resolved this query at your end.&lt;br /&gt;
&lt;br /&gt;
Let me know if you have any further queries.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Rajeev</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9760/number-of-entries-in-leaderboard&amp;show=9781#a9781</guid>
<pubDate>Tue, 18 Oct 2016 06:12:48 +0000</pubDate>
</item>
<item>
<title>Answered: API Gateway Authentication Signature Not Valid</title>
<link>http://forum.shephertz.com/?qa=9745/api-gateway-authentication-signature-not-valid&amp;show=9750#a9750</link>
<description>&lt;p&gt;
	Hi Alberto,&lt;/p&gt;
&lt;p&gt;
	To use the signature validation on your APIs , please make sure you are following the correct path as given below:&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	1. &amp;nbsp;Signature &amp;amp; Timestamp Validation is only for &lt;strong&gt;POST &lt;/strong&gt;requests.&lt;/p&gt;
&lt;p&gt;
	2. Make sure you have you have attached the API operation to the IAM in IAM Mappings.&lt;/p&gt;
&lt;p&gt;
	3. Make sure you have attached the API operation to Auth Policy in API Settings.&lt;/p&gt;
&lt;p&gt;
	4. &amp;nbsp;Initialize the variables as shown below.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;String apiName = &quot;HelloWorld&quot;; &amp;nbsp; &lt;strong&gt;// This is your Operation Name (not api name).&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
	&amp;nbsp;String version = &lt;strong&gt;&quot;1.0&quot;;&lt;/strong&gt; &amp;nbsp;// project version&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;String body =&lt;strong&gt; &quot;{\&quot;singer\&quot;: \&quot;Metallica\&quot;,\&quot;title\&quot;: \&quot;Enter Sandman\&quot;}&quot;; &amp;nbsp;&lt;/strong&gt;// exact Body&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;String signature =&lt;strong&gt; generateSignature(apiName,version,IAM_Key,IAM_Secret_KEY,body);&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;System.out.println(&quot;Signature: &quot;+signature);&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	4. When Requesting from&lt;strong&gt; test api and view specs&lt;/strong&gt; , please make sure you are passing the body same as you have passed while generating the signature.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	5. The signature and timestamp generated will be valid for the mentioned timestamp period which you have given in the auth policy.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Follow these steps and all will be good.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Please let us know if you are still facing any issues. We ll be happy to &amp;nbsp;help you.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Thanks &amp;amp; Regards,&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Ashutosh&lt;/div&gt;</description>
<category>App42 API Gateway</category>
<guid isPermaLink="true">http://forum.shephertz.com/?qa=9745/api-gateway-authentication-signature-not-valid&amp;show=9750#a9750</guid>
<pubDate>Mon, 10 Oct 2016 06:44:51 +0000</pubDate>
</item>
</channel>
</rss>