zregvart commented on a change in pull request #298: Pulling data from json apis
URL: https://github.com/apache/camel-website/pull/298#discussion_r402424929
 
 

 ##########
 File path: layouts/shortcodes/contributors.html
 ##########
 @@ -0,0 +1,31 @@
+
+<table class="tableblock stretch">
+    <thead>
+        <tr>
+            <th>Avatar</th>
+            <th>Name</th>
+            <th>Organization</th>
+        </tr>
+    </thead>
+    <tbody>
+        {{ range  $page_count := (seq 10) }}
+            {{ $page := string $page_count }}
+                {{ $git_contributors := getJSON 
"https://api.github.com/repos/apache/camel/contributors?per_page=100&anon=1&page=";
 $page "&access_token=" $.Site.Params.token }}
 
 Review comment:
   Do we need the token here? I'm guessing this fails because `token` is empty 
but specified. I'd remove token altogether until we hit request limits, then we 
can add it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to